diff --git a/FrankenPHP.Alpine.Dockerfile b/FrankenPHP.Alpine.Dockerfile index 8f58877..0d6c59b 100644 --- a/FrankenPHP.Alpine.Dockerfile +++ b/FrankenPHP.Alpine.Dockerfile @@ -91,7 +91,8 @@ RUN arch="$(apk --print-arch)" \ && echo "*/1 * * * * php ${ROOT}/artisan schedule:run --no-interaction" > /etc/supercronic/laravel RUN addgroup -g ${WWWGROUP} ${USER} \ - && adduser -D -h ${ROOT} -G ${USER} -u ${WWWUSER} -s /bin/sh ${USER} + && adduser -D -h ${ROOT} -G ${USER} -u ${WWWUSER} -s /bin/sh ${USER} \ + && setcap -r /usr/local/bin/frankenphp RUN mkdir -p /var/log/supervisor /var/run/supervisor \ && chown -R ${USER}:${USER} ${ROOT} /var/log /var/run \ diff --git a/FrankenPHP.Dockerfile b/FrankenPHP.Dockerfile index 118568e..e586876 100644 --- a/FrankenPHP.Dockerfile +++ b/FrankenPHP.Dockerfile @@ -96,7 +96,8 @@ RUN arch="$(uname -m)" \ RUN userdel --remove --force www-data \ && groupadd --force -g ${WWWGROUP} ${USER} \ - && useradd -ms /bin/bash --no-log-init --no-user-group -g ${WWWGROUP} -u ${WWWUSER} ${USER} + && useradd -ms /bin/bash --no-log-init --no-user-group -g ${WWWGROUP} -u ${WWWUSER} ${USER} \ + && setcap -r /usr/local/bin/frankenphp RUN chown -R ${USER}:${USER} ${ROOT} /var/{log,run} \ && chmod -R a+rw ${ROOT} /var/{log,run}