fix user id and group id
This commit is contained in:
parent
dbbdb5b770
commit
652e9f3fdb
1 changed files with 5 additions and 1 deletions
|
|
@ -8,7 +8,7 @@ ARG CLOUDFLARED_VERSION=2024.11.0
|
||||||
# https://www.postgresql.org/support/versioning/ - Can not updated automatically so keep it at 15
|
# https://www.postgresql.org/support/versioning/ - Can not updated automatically so keep it at 15
|
||||||
ARG POSTGRES_VERSION=15
|
ARG POSTGRES_VERSION=15
|
||||||
|
|
||||||
# Add user/group build arguments
|
# Add user/group
|
||||||
ARG USER_ID=9999
|
ARG USER_ID=9999
|
||||||
ARG GROUP_ID=9999
|
ARG GROUP_ID=9999
|
||||||
|
|
||||||
|
|
@ -19,6 +19,10 @@ FROM serversideup/php:${SERVERSIDEUP_PHP_VERSION} AS base
|
||||||
|
|
||||||
# Set the user ID and group ID for www-data
|
# Set the user ID and group ID for www-data
|
||||||
USER root
|
USER root
|
||||||
|
|
||||||
|
ARG USER_ID
|
||||||
|
ARG GROUP_ID
|
||||||
|
|
||||||
RUN docker-php-serversideup-set-id www-data $USER_ID:$GROUP_ID && \
|
RUN docker-php-serversideup-set-id www-data $USER_ID:$GROUP_ID && \
|
||||||
docker-php-serversideup-set-file-permissions --owner $USER_ID:$GROUP_ID --service nginx
|
docker-php-serversideup-set-file-permissions --owner $USER_ID:$GROUP_ID --service nginx
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue