2016-12-29 05:01:43 +01:00
|
|
|
FROM ubuntu:16.04
|
2014-10-27 12:58:42 +01:00
|
|
|
|
2016-02-19 03:51:08 +01:00
|
|
|
RUN apt-get update && \
|
2016-12-29 05:01:43 +01:00
|
|
|
DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
2017-11-28 06:45:46 +01:00
|
|
|
apache2 libapache2-mod-php7.0 php7.0-pgsql php7.0-mysql php7.0-sqlite3 php7.0-xml php7.0-mcrypt \
|
2016-12-29 05:01:43 +01:00
|
|
|
php7.0-opcache php7.0-mcrypt php7.0-mbstring php7.0-json php7.0-curl && \
|
|
|
|
apt-get clean
|
2016-09-03 05:26:34 +02:00
|
|
|
|
|
|
|
RUN echo \
|
|
|
|
"ServerName localhost\n" \
|
|
|
|
"<Directory /var/www/html/data/>\n" \
|
|
|
|
" Deny from all\n" \
|
|
|
|
"</Directory>\n" \
|
|
|
|
"<Directory /var/www/html/data/favicons/>\n" \
|
|
|
|
" Allow from all\n" \
|
|
|
|
"</Directory>\n" >> /etc/apache2/apache2.conf
|
2016-02-19 03:51:08 +01:00
|
|
|
|
|
|
|
COPY . /var/www/html
|
|
|
|
|
|
|
|
RUN rm -rf /var/www/html/index.html /var/www/html/data/* && \
|
|
|
|
mkdir /var/www/html/data/favicons && \
|
|
|
|
chown -R www-data:www-data /var/www/html/data
|
2014-10-27 12:58:42 +01:00
|
|
|
|
2015-07-19 17:19:26 +02:00
|
|
|
VOLUME /var/www/html/data
|
2014-10-27 12:58:42 +01:00
|
|
|
|
|
|
|
EXPOSE 80
|
|
|
|
|
2015-07-19 17:19:26 +02:00
|
|
|
CMD /usr/sbin/apache2ctl -D FOREGROUND
|