Trying with a different image
This commit is contained in:
parent
a5bcbcbdeb
commit
315b1b78e5
|
|
@ -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.
|
# Set environment variables.
|
||||||
ENV HOME /root
|
ENV HOME /root
|
||||||
|
|
@ -7,12 +8,7 @@ ENV HOME /root
|
||||||
# Define working directory.
|
# Define working directory.
|
||||||
WORKDIR /root
|
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
|
ARG COMMIT
|
||||||
ENV COMMIT_SHA=${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
|
# Ensure CakePHP tmp directory is writable by web server
|
||||||
RUN chmod -R 777 /var/www/cmc-sales/app/tmp
|
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
|
# No need to disable proxy_fcgi or remove PHP-FPM conf files in this image
|
||||||
RUN a2dismod proxy_fcgi
|
|
||||||
RUN rm -f /etc/apache2/conf-enabled/php*-fpm.conf || true
|
|
||||||
# By default, simply start apache.
|
# By default, simply start apache.
|
||||||
CMD /usr/sbin/apache2ctl -D FOREGROUND
|
CMD /usr/sbin/apache2ctl -D FOREGROUND
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue