FROM serversideup/php:8.2-fpm-nginx-v3.2.0 AS base
ARG SSL_MODE
ENV SSL_MODE ${SSL_MODE:-off}
ARG PHP_MAX_EXECUTION_TIME
ENV PHP_MAX_EXECUTION_TIME ${PHP_MAX_EXECUTION_TIME:-300}
# Switch to root so we can do root things
USER root
COPY ./docker/zzz-custom-php.ini /usr/local/etc/php/conf.d/
# Drop back to our unprivileged user
USER www-data
############################################
# Production Image
############################################
# Since we're calling "base", production isn't
# calling any of that permission stuff
FROM base as production
COPY --chown=www-data:www-data . /var/www/html
RUN composer install --no-interaction --prefer-dist --optimize-autoloader --ignore-platform-reqs --no-dev --no-cache
Steps To Reproduce
My Dockerfile
and zzz-custom-php.ini
shell in my container on k8s then
Outcome
What did you expect?
max_execution_time = 301
What happened instead?
max_execution_time = 0
Affected Docker Images
serversideup/php:8.2-fpm-nginx-v3.2.0
Anything else?
No response