Dockerfile: order changed and variable used

This commit is contained in:
2022-02-18 08:41:50 +01:00
parent ac439c8606
commit d83f0d771d

View File

@@ -2,6 +2,8 @@ FROM monica:apache
# Use the default production configuration # Use the default production configuration
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
# increase php upload limit
RUN sed -i 's/upload_max_filesize = 2M/upload_max_filesize = 10M/' "$PHP_INI_DIR/php.ini"
# supervisord dependencies # supervisord dependencies
RUN apt-get update && \ RUN apt-get update && \
@@ -11,7 +13,4 @@ RUN apt-get update && \
COPY supervisord.conf /etc/supervisord.conf COPY supervisord.conf /etc/supervisord.conf
# increase php upload limit
RUN sed -i 's/upload_max_filesize = 2M/upload_max_filesize = 10M/' /usr/local/etc/php/php.ini
CMD ["supervisord", "-c", "/etc/supervisord.conf"] CMD ["supervisord", "-c", "/etc/supervisord.conf"]