Customise UID/GID for Docker (#63)

This commit is contained in:
Thomas Miceli
2023-06-18 12:50:36 +02:00
committed by GitHub
parent 98c85de3d6
commit da19e486f2
3 changed files with 37 additions and 8 deletions

13
docker/entrypoint.sh Executable file
View File

@ -0,0 +1,13 @@
#!/bin/sh
export USER=opengist
PID=${PID:-1000}
GID=${GID:-1000}
groupmod -o -g "$GID" $USER
usermod -o -u "$PID" $USER
chown -R "$USER:$USER" /opengist
export OG_OPENGIST_HOME=/opengist
su -m $USER -c "/app/opengist/opengist"