Merge pull request #558 from conradkleinespel/patch-1

Blocking access to /data with the docker image
This commit is contained in:
Frédéric Guillot 2016-09-05 19:32:10 -04:00 committed by GitHub
commit 5d1c5697ce

View File

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