forked from dysosmus/miniflux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
28 lines (21 loc) · 806 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM ubuntu:16.04
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y \
apache2 libapache2-mod-php7.0 php7.0-pgsql php7.0-sqlite3 php7.0-xml php7.0-mcrypt \
php7.0-opcache php7.0-mcrypt php7.0-mbstring php7.0-json php7.0-curl && \
apt-get clean
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
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
VOLUME /var/www/html/data
EXPOSE 80
CMD /usr/sbin/apache2ctl -D FOREGROUND