[GRASS-SVN] r72960 - grass/trunk

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Jul 6 06:16:21 PDT 2018


Author: neteler
Date: 2018-07-06 06:16:21 -0700 (Fri, 06 Jul 2018)
New Revision: 72960

Modified:
   grass/trunk/Dockerfile
Log:
Dockerfile: reduce image size

Modified: grass/trunk/Dockerfile
===================================================================
--- grass/trunk/Dockerfile	2018-07-06 11:33:34 UTC (rev 72959)
+++ grass/trunk/Dockerfile	2018-07-06 13:16:21 UTC (rev 72960)
@@ -91,6 +91,10 @@
 # enable simple grass command regardless of version number
 RUN ln -s /usr/local/bin/grass* /usr/local/bin/grass
 
+# Reduce the image size
+RUN apt-get autoremove -y
+RUN apt-get clean -y
+
 # Fix permissions
 RUN chmod -R a+rwx $DATA_DIR
 
@@ -101,6 +105,9 @@
 VOLUME $DATA_DIR
 WORKDIR $DATA_DIR
 
+# Reduce the image size further
+RUN rm -rf /code/grass
+
 # switch the user
 USER grass
 



More information about the grass-commit mailing list