mirror of
https://github.com/shlinkio/shlink.git
synced 2024-11-24 21:58:40 +03:00
Merge pull request #1108 from kanadaj/develop
Change the Docker user to non-root
This commit is contained in:
commit
8efda2ef56
1 changed files with 9 additions and 0 deletions
|
@ -78,4 +78,13 @@ COPY docker/docker-entrypoint.sh docker-entrypoint.sh
|
|||
COPY docker/config/shlink_in_docker.local.php config/autoload/shlink_in_docker.local.php
|
||||
COPY docker/config/php.ini ${PHP_INI_DIR}/conf.d/
|
||||
|
||||
# Change the ownership of /etc/shlink/data to be writable, then change the user to non-root
|
||||
RUN chown 1001 /etc/shlink/data
|
||||
RUN chown 1001 /etc/shlink/data/locks
|
||||
RUN chown 1001 /etc/shlink/data/proxies
|
||||
RUN chown 1001 /etc/shlink/data/cache
|
||||
RUN chown 1001 /etc/shlink/data/log
|
||||
|
||||
USER 1001
|
||||
|
||||
ENTRYPOINT ["/bin/sh", "./docker-entrypoint.sh"]
|
||||
|
|
Loading…
Reference in a new issue