-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
25 lines (19 loc) · 629 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
FROM php:5.6.40-apache-stretch
LABEL maintainer="Faisal Thaheem" BASENAME="faisalthaheem/dvs"
ADD ./conf/000-default.conf /etc/apache2/sites-enabled/
#copy to temp and move later in below statement to make
#fs ownership to take effect
ADD ./site/ /opt/site
RUN true \
&& export DEBIAN_FRONTEND=noninteractive \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
nano \
&& docker-php-ext-install mysqli pdo pdo_mysql \
&& a2enmod rewrite \
&& rm -Rf /var/www/html \
&& mv /opt/site /var/www/html \
&& chown -R www-data.www-data /var/www/html
ENV DEBUG=0
VOLUME ["/var/www/html"]
EXPOSE 80