| 1 | #!/bin/sh |
| 2 | set -eu |
| 3 | |
| 4 | mkdir -p /custom/conf |
| 5 | envsubst < /studio/app.ini > /custom/conf/app.ini |
| 6 | chown "$USER_UID:$USER_GID" /custom/conf /custom/conf/app.ini |
| 7 | chmod 750 /custom/conf |
| 8 | chmod 600 /custom/conf/app.ini |
| 9 | # The image's s6 bundle starts an SSH daemon on the host's port 22. |
| 10 | exec /usr/bin/entrypoint /bin/bash -c 'source /etc/s6/gitea/setup; cd /app/gitea; exec su-exec git /usr/local/bin/gitea web' |