Added user php with uid 10000
This commit is contained in:
parent
4fa3d87ffe
commit
e8af87d5b3
|
@ -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"]
|
||||||
|
|
|
@ -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 \
|
||||||
|
|
Loading…
Reference in New Issue