Accidentally hardcoded 7.3 in.

This commit is contained in:
Greyscale 2019-07-31 16:39:50 +02:00
parent 924292c8ab
commit f5a43da948

View file

@ -49,9 +49,9 @@ RUN bash /app/configure-nginx.php{{PHPVERSION}}.sh && \
sed -i "s/{{PHP}}/{{PHPVERSION}}/g" /etc/nginx/sites-enabled/default && \
sed -i "s/{{PHP}}/{{PHPVERSION}}/g" /etc/service/php-fpm/run && \
# Enable status panel
sed -i -e "s/;pm.status_path/pm.status_path/g" /etc/php/7.3/fpm/pool.d/www.conf && \
sed -i -e "s/;pm.status_path/pm.status_path/g" /etc/php/*/fpm/pool.d/www.conf && \
# Using environment variables in config files works, it would seem. Neat!
sed -i -e "s/pm.max_children = 5/pm.max_children = \${PHPFPM_MAX_CHILDREN}/g" /etc/php/7.3/fpm/pool.d/www.conf
sed -i -e "s/pm.max_children = 5/pm.max_children = \${PHPFPM_MAX_CHILDREN}/g" /etc/php/*/fpm/pool.d/www.conf
# On build, add anything in with Dockerfile into /app
ONBUILD ADD ./ /app