prod #123
|
|
@ -1,5 +1,6 @@
|
|||
# Use a community-maintained PHP 5.6 + Apache image for legacy CakePHP
|
||||
FROM webdevops/php-apache:5.6
|
||||
|
||||
# Use the official PHP 5.6 Apache image for classic mod_php
|
||||
FROM php:5.6-apache
|
||||
|
||||
# Set environment variables.
|
||||
ENV HOME /root
|
||||
|
|
@ -7,12 +8,7 @@ ENV HOME /root
|
|||
# Define working directory.
|
||||
WORKDIR /root
|
||||
|
||||
# Manually set up the apache environment variables
|
||||
ENV APACHE_RUN_USER www-data
|
||||
ENV APACHE_RUN_GROUP www-data
|
||||
ENV APACHE_LOG_DIR /var/log/apache2
|
||||
ENV APACHE_LOCK_DIR /var/lock/apache2
|
||||
ENV APACHE_PID_FILE /var/run/apache2.pid
|
||||
|
||||
|
||||
ARG COMMIT
|
||||
ENV COMMIT_SHA=${COMMIT}
|
||||
|
|
@ -50,8 +46,6 @@ RUN chmod +x /var/www/cmc-sales/run_vault.sh
|
|||
|
||||
# Ensure CakePHP tmp directory is writable by web server
|
||||
RUN chmod -R 777 /var/www/cmc-sales/app/tmp
|
||||
# Disable proxy_fcgi and remove any PHP-FPM conf files to force classic mod_php
|
||||
RUN a2dismod proxy_fcgi
|
||||
RUN rm -f /etc/apache2/conf-enabled/php*-fpm.conf || true
|
||||
# No need to disable proxy_fcgi or remove PHP-FPM conf files in this image
|
||||
# By default, simply start apache.
|
||||
CMD /usr/sbin/apache2ctl -D FOREGROUND
|
||||
|
|
|
|||
Loading…
Reference in a new issue