Closed RadeJR closed 6 months ago
Thanks for the detailed report! I'll work on a fix and will keep you posted 👍
I just pushed a fix for this and it should be made available shortly! It's building on our main branch now, which will publish it to our php-dev
images: https://hub.docker.com/r/serversideup/php-dev
The build process takes about an hour, but you can check its status here:
https://github.com/serversideup/docker-php/actions/runs/8870026059
Since it is merged to main, it will be included with our next release once that is ready.
Thanks for your detailed report! It made it very easy for me to understand the issue and get straight to the fix 👍
Affected Docker Images
serversideup/php:beta-7.4-cli-alpine serversideup/php:beta-7.4-fpm-nginx-alpine Possibly other images
Docker Labels of the affected images
serversideup/php:beta-7.4-fpm-nginx-alpine
serversideup/php:beta-7.4-cli-alpine
Current Behavior
When running this image with environment variable LOG_OUTPUT_LEVEL set to debug, I get these error messages: serversideup/php:beta-7.4-fpm-nginx-alpine
serversideup/php:beta-7.4-cli-alpine
Expected Behavior
To not have permission denied
Steps To Reproduce
USER root RUN docker-php-serversideup-dep-install-alpine ffmpeg && \ install-php-extensions gd exif USER www-data
COPY --chown=www-data:www-data . ./ RUN if [ "$NO_DEV" = "true" ]; then \ composer install --no-scripts --no-dev --optimize-autoloader --no-interaction --no-ansi --no-progress; \ else \ composer install --no-scripts --optimize-autoloader --no-interaction --no-ansi --no-progress; \ fi
#############################
FPM-NGINX
############################# FROM serversideup/php:beta-7.4-fpm-nginx-alpine as fpm-nginx WORKDIR $APP_BASE_DIR ENV COMPOSER_CACHE_DIR=/dev/null
USER root RUN docker-php-serversideup-dep-install-alpine ffmpeg && \ install-php-extensions gd exif USER www-data
COPY --from=cli --chown=www-data:www-data $APP_BASE_DIR/ ./
Host Operating System
Ubuntu 22.04
Docker Version
Anything else?
No response