Created
October 1, 2017 21:37
-
-
Save nmoller/d71b5a79563ba0ae1425aecb00113e75 to your computer and use it in GitHub Desktop.
Version 7.0.20
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM php:7.0.20-apache | |
LABEL maintainer "Nelson Moller" | |
# Pour avoir /etc/ssl/certs/ssl-cert-snakeoil.pem ssl-cert | |
# https offert gracieusement par netscaler | |
RUN apt-get update && apt-get install -y \ | |
# pour installer toutes les déps. | |
libmemcached-dev zlib1g-dev libmcrypt-dev libxml2-dev libpng-dev libicu-dev\ | |
&& pecl install memcached-3.0.3 \ | |
&& docker-php-ext-enable memcached \ | |
&& docker-php-ext-install -j$(nproc) iconv mcrypt\ | |
xmlrpc soap ctype zip gd intl mysqli opcache | |
#RUN apt-get update && apt-get install -y openssl | |
# Apache + PHP requires preforking Apache for best results & enable Apache SSL | |
# forward request and error logs to docker log collector | |
RUN a2dismod mpm_event && a2dismod mpm_worker && \ | |
a2enmod mpm_prefork \ | |
#ssl \ | |
rewrite && \ | |
#a2ensite default-ssl && \ | |
ln -sf /dev/stdout /var/log/apache2/access.log && \ | |
ln -sf /dev/stderr /var/log/apache2/error.log | |
COPY moodle /var/www/html | |
COPY config/config.php /var/www/html | |
COPY php-config/php.ini /usr/local/etc/php | |
COPY apache-conf/apache2.conf /etc/apache2 | |
COPY apache-conf/mpm_prefork.conf /etc/apache2/mods-available | |
#VOLUME ["/var/www/moodledata"] | |
RUN mkdir /var/www/moodledata && chown www-data.www-data /var/www/moodledata | |
WORKDIR /var/www/html | |
EXPOSE 80 | |
# Voir https://jira.uqam.ca/browse/MMDL-330 | |
ENTRYPOINT ["sh", "-c", "apache2-foreground"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment