Browse Source

removed installation logs

tags/v1.0.0
Robin Thoni 7 years ago
parent
commit
2e88134cf3
2 changed files with 15 additions and 8 deletions
  1. 2
    0
      postgresql/Dockerfile
  2. 13
    8
      roundcube/Dockerfile

+ 2
- 0
postgresql/Dockerfile View File

@@ -1,3 +1,5 @@
1 1
 FROM postgres:9.6
2 2
 
3
+RUN rm -rf /var/log/*
4
+
3 5
 COPY ./docker-entrypoint-initdb.d/ /docker-entrypoint-initdb.d

+ 13
- 8
roundcube/Dockerfile View File

@@ -16,17 +16,22 @@ RUN apt-get update && apt-get -y install\
16 16
         php5-intl\
17 17
         php5-ldap\
18 18
         php5-imap &&\
19
-        apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* &&\
20
-        /usr/sbin/a2enmod rewrite &&\
21
-        rm -rf /var/www/html &&\
22
-        mkdir -p /var/lock/apache2 /var/run/apache2 /var/log/apache2 /var/www/html &&\
23
-        chown -R www-data:www-data /var/lock/apache2 /var/run/apache2 /var/log/apache2 /var/www/html &&\
24
-        ln -sf /dev/stderr /var/log/apache2/error.log &&\
25
-        ln -sf /dev/stdout /var/log/apache2/access.log
19
+        apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
20
+
21
+RUN /usr/sbin/a2enmod rewrite &&\
22
+    rm -rf /var/www/html &&\
23
+    mkdir -p /var/lock/apache2 /var/run/apache2 /var/log/apache2 /var/www/html &&\
24
+    chown -R www-data:www-data /var/lock/apache2 /var/run/apache2 /var/log/apache2 /var/www/html
25
+
26
+RUN rm -rf /var/log/* &&\
27
+    mkdir -p /var/log/apache2 &&\
28
+    ln -s /dev/stderr /var/log/apache2/error.log &&\
29
+    ln -s /dev/stdout /var/log/apache2/access.log &&\
30
+    ln -s /dev/stdout /var/log/apache2/other_vhosts_access.log
26 31
 
27 32
 COPY ./apache2.conf /etc/apache2/apache2.conf
28 33
 
29
-COPY run.sh /run.sh
34
+COPY ./run.sh /run.sh
30 35
 
31 36
 EXPOSE 80
32 37
 

Loading…
Cancel
Save