Added user php with uid 10000
This commit is contained in:
parent
8cd2e3e04b
commit
3d4a2537b1
|
@ -64,6 +64,8 @@ COPY --from=builder / /
|
|||
|
||||
WORKDIR /app
|
||||
|
||||
USER php
|
||||
|
||||
STOPSIGNAL SIGQUIT
|
||||
|
||||
CMD ["/usr/bin/php", "-v"]
|
||||
|
|
|
@ -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 \
|
||||
|
|
Loading…
Reference in New Issue