Added user php with uid 10000
Build and push PHP 7 container images / Build PHP 7 container images (map[mode:cli os:alpine os_version:3.12 php_ver_short:7 php_version:7.3 with_database:false with_server:false]) (push) Successful in 52s Details
Build and push PHP 7 container images / Build PHP 7 container images (map[mode:cli os:alpine os_version:3.15 php_ver_short:7 php_version:7.4 with_database:false with_server:false]) (push) Successful in 49s Details
Build and push PHP 7 container images / Build PHP 7 container images (map[mode:cli os:alpine os_version:3.9 php_ver_short:7 php_version:7.2 with_database:false with_server:false]) (push) Successful in 50s Details
Build and push PHP 7 container images / Build PHP 7 container images (map[mode:full os:alpine os_version:3.12 php_ver_short:7 php_version:7.3 with_database:false with_server:apache]) (push) Successful in 1m4s Details
Build and push PHP 7 container images / Build PHP 7 container images (map[mode:full os:alpine os_version:3.12 php_ver_short:7 php_version:7.3 with_database:false with_server:false]) (push) Successful in 1m1s Details
Build and push PHP 7 container images / Build PHP 7 container images (map[mode:full os:alpine os_version:3.12 php_ver_short:7 php_version:7.3 with_database:mysql with_server:apache]) (push) Successful in 1m4s Details
Build and push PHP 7 container images / Build PHP 7 container images (map[mode:full os:alpine os_version:3.12 php_ver_short:7 php_version:7.3 with_database:postgresql with_server:apache]) (push) Successful in 1m15s Details
Build and push PHP 7 container images / Build PHP 7 container images (map[mode:full os:alpine os_version:3.15 php_ver_short:7 php_version:7.4 with_database:false with_server:apache]) (push) Successful in 1m11s Details
Build and push PHP 7 container images / Build PHP 7 container images (map[mode:full os:alpine os_version:3.15 php_ver_short:7 php_version:7.4 with_database:false with_server:false]) (push) Successful in 1m2s Details
Build and push PHP 7 container images / Build PHP 7 container images (map[mode:full os:alpine os_version:3.15 php_ver_short:7 php_version:7.4 with_database:mysql with_server:apache]) (push) Successful in 1m13s Details
Build and push PHP 7 container images / Build PHP 7 container images (map[mode:full os:alpine os_version:3.15 php_ver_short:7 php_version:7.4 with_database:postgresql with_server:apache]) (push) Successful in 1m10s Details
Build and push PHP 7 container images / Build PHP 7 container images (map[mode:full os:alpine os_version:3.9 php_ver_short:7 php_version:7.2 with_database:false with_server:apache]) (push) Successful in 1m8s Details
Build and push PHP 7 container images / Build PHP 7 container images (map[mode:full os:alpine os_version:3.9 php_ver_short:7 php_version:7.2 with_database:false with_server:false]) (push) Successful in 1m10s Details
Build and push PHP 7 container images / Build PHP 7 container images (map[mode:full os:alpine os_version:3.9 php_ver_short:7 php_version:7.2 with_database:mysql with_server:apache]) (push) Successful in 1m11s Details
Build and push PHP 7 container images / Build PHP 7 container images (map[mode:full os:alpine os_version:3.9 php_ver_short:7 php_version:7.2 with_database:postgresql with_server:apache]) (push) Successful in 1m7s Details

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

View File

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

View File

@ -15,8 +15,10 @@ SERVER_ROOT="/app"
APP_ROOT="$SERVER_ROOT/htdocs" APP_ROOT="$SERVER_ROOT/htdocs"
LOG_LEVEL="info" 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 if [[ "$FLAVOR" == "debug" ]]; then
LOG_LEVEL="debug" LOG_LEVEL="debug"
/sbin/apk add --update --no-cache php$PHP_VER_SHORT-dbg \ /sbin/apk add --update --no-cache php$PHP_VER_SHORT-dbg \