-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (20 loc) · 729 Bytes
/
Copy pathDockerfile
File metadata and controls
28 lines (20 loc) · 729 Bytes
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 nawork/baseimage:jessie
RUN apt-get -y update && apt-get -y --no-install-recommends upgrade
RUN apt-get install -y -t wheezy-backports --no-install-recommends apache2 php5-fpm
ENV APACHE_RUN_USER www-data
ENV APACHE_RUN_GROUP www-data
ENV APACHE_LOG_DIR /var/log/apache2
# apache startup script
ADD service-apache.sh /etc/service/apache/run
ADD service-fpm.sh /etc/service/fpm/run
# PHP demo files
ADD index.php /var/www/html/
# apache config
ADD 000-default.conf /etc/apache2/sites-available/
ADD apache2.conf /etc/apache2/
ADD default-ssl.conf /etc/apache2/sites-available/
ADD php-fpm.conf /etc/php5/fpm/
ADD www.conf /etc/php5/fpm/pool.d/
RUN /usr/sbin/a2enmod proxy_fcgi rewrite
EXPOSE 80
CMD ["/sbin/my_init"]