Fixed entrypoint permission

This commit is contained in:
Muhamad Aditya Prima 2024-12-27 04:32:01 +07:00
parent e8af87d5b3
commit 5d1d47aa7e
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ RUN /bin/mkdir -p /app ; \
php${PHP_VER_SHORT} php${PHP_VER_SHORT}-common \
php${PHP_VER_SHORT}-cli php${PHP_VER_SHORT}-phar \
php${PHP_VER_SHORT}-iconv php${PHP_VER_SHORT}-mbstring ; \
/bin/chmod +x /tmp/setup.sh /usr/local/bin/entrypoint.sh /usr/local/bin/composer; \
/bin/chmod +rx /tmp/setup.sh /usr/local/bin/entrypoint.sh /usr/local/bin/composer; \
/bin/sh /tmp/setup.sh; \
/bin/rm -f /tmp/*.sh;

View File

@ -16,7 +16,7 @@ APP_ROOT="$SERVER_ROOT/htdocs"
LOG_LEVEL="info"
/usr/sbin/addgroup -g 10000 php ;
/usr/sbin/adduser -D -u 10000 -G php -s /bin/sh -h $APP_ROOT php ;
/usr/sbin/adduser -D -u 10000 -G php -s /bin/sh -h $SERVER_ROOT php ;
# Setup php flavor
if [[ "$FLAVOR" == "debug" ]]; then