|
@@ -3,8 +3,6 @@ FROM debian:jessie
|
3
|
3
|
# FROM https://github.com/ZHAJOR/Docker-Apache-2.4-Php-5.6-for-Laravel
|
4
|
4
|
MAINTAINER Robin Thoni <robin@rthoni.com>
|
5
|
5
|
|
6
|
|
-COPY run.sh /run.sh
|
7
|
|
-
|
8
|
6
|
RUN apt-get update && apt-get -y install\
|
9
|
7
|
apache2=2.4.*\
|
10
|
8
|
libapache2-mod-php5\
|
|
@@ -20,15 +18,17 @@ RUN apt-get update && apt-get -y install\
|
20
|
18
|
rm -rf /var/www/html &&\
|
21
|
19
|
mkdir -p /var/lock/apache2 /var/run/apache2 /var/log/apache2 /var/www/html &&\
|
22
|
20
|
chown -R www-data:www-data /var/lock/apache2 /var/run/apache2 /var/log/apache2 /var/www/html &&\
|
23
|
|
- chmod -v +x /run.sh &&\
|
24
|
21
|
ln -sf /dev/stderr /var/log/apache2/error.log &&\
|
25
|
22
|
ln -sf /dev/stdout /var/log/apache2/access.log
|
26
|
23
|
|
27
|
24
|
COPY apache2.conf /etc/apache2/apache2.conf
|
28
|
25
|
|
29
|
|
-EXPOSE 80
|
30
|
26
|
|
31
|
27
|
COPY ./postfixadmin-3.0/ /var/www/html/
|
32
|
28
|
RUN chmod -R 777 /var/www/html/templates_c
|
33
|
29
|
|
|
30
|
+COPY run.sh /run.sh
|
|
31
|
+
|
|
32
|
+EXPOSE 80
|
|
33
|
+
|
34
|
34
|
CMD ["/run.sh"]
|