Przeglądaj źródła

Remove apt trash

Gabriel 6 lat temu
rodzic
commit
b7c6cdf036
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      Dockerfile

+ 2 - 1
Dockerfile

@@ -33,7 +33,8 @@ RUN chmod 0600 /opt/keys/*; \
     sed -i 's#;listen.mode = 0660#listen.mode = 0777#g' /etc/php/7.0/fpm/pool.d/www.conf; \
     sed -i 's#pm.max_children = 5#pm.max_children = 10#g' /etc/php/7.0/fpm/pool.d/www.conf; \
     sed -i 's#;pm.max_requests = 500#pm.max_requests = 500#g' /etc/php/7.0/fpm/pool.d/www.conf; \
-    chmod 777 -R var/cache/ var/logs/ var/sessions/
+    chmod 777 -R var/cache/ var/logs/ var/sessions/; \
+    rm -rf /var/lib/apt/lists/*
 
 CMD env; \
     cp /opt/ftth/keys/fullchain.pem /usr/share/ca-certificates/$HOST_BASE; \