blocks access to /data with the docker image

This commit is contained in:
Conrad Kleinespel 2016-09-03 05:26:34 +02:00
parent aa42fd83a8
commit a08b24df46

View File

@ -2,8 +2,16 @@ FROM ubuntu:14.04
RUN apt-get update && \ RUN apt-get update && \
apt-get install -y apache2 php5 php5-sqlite php5-curl && \ apt-get install -y apache2 php5 php5-sqlite php5-curl && \
apt-get clean && rm -rf /var/lib/apt/lists/* && \ apt-get clean && rm -rf /var/lib/apt/lists/*
echo "ServerName localhost" >> /etc/apache2/apache2.conf
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
COPY . /var/www/html COPY . /var/www/html