Added user php with uid 10000

This commit is contained in:
Muhamad Aditya Prima 2024-12-27 03:47:13 +07:00
parent 4fa3d87ffe
commit e8af87d5b3
2 changed files with 5 additions and 1 deletions

View File

@ -64,6 +64,8 @@ COPY --from=builder / /
WORKDIR /app
USER php
STOPSIGNAL SIGQUIT
CMD ["/usr/bin/php", "-v"]

View File

@ -15,8 +15,10 @@ SERVER_ROOT="/app"
APP_ROOT="$SERVER_ROOT/htdocs"
LOG_LEVEL="info"
# Setup php flavor
/usr/sbin/addgroup -g 10000 php ;
/usr/sbin/adduser -D -u 10000 -G php -s /bin/sh -h $APP_ROOT php ;
# Setup php flavor
if [[ "$FLAVOR" == "debug" ]]; then
LOG_LEVEL="debug"
/sbin/apk add --update --no-cache php$PHP_VER_SHORT-dbg \