Closed WisdomSky closed 3 months ago
Thanks for pointing this out!
The docs were dated and it was missing the correct permissions.
New example:
FROM serversideup/php:8.3-fpm-nginx
ENV S6_CMD_WAIT_FOR_SERVICES=1
COPY --chmod=755 ./entrypoint.d/ /etc/entrypoint.d/
# Change to root, so we can do root things
USER root
# As root, run the docker-php-serversideup-s6-init script
RUN docker-php-serversideup-s6-init
# Change back to the www-data user
USER www-data
@jaydrogers Thank you for the very quick response! I really appreciated it!
Can confirm that it now works as expected.
Thank you!
Affected Docker Images
serversideup/php:8.3-fpm-nginx
Docker Labels of the affected images
No response
Current Behavior
RUN docker-php-serversideup-s6-init
returns permission deniedExpected Behavior
The custom dockerfile should execute without problems as documented here: https://serversideup.net/open-source/docker-php/docs/customizing-the-image/adding-your-own-start-up-scripts#docker-php-serversideup-s6-init-usage
Steps To Reproduce
entrypoint.d
directoryentrypoint.d
directory, create a custom shellscript e.g99-custom.sh
Host Operating System
Debian 11
Docker Version
Anything else?
No response