Sfoglia il codice sorgente

alpine dockerfile: do not clean module_items.xml (#330)

mmacata 5 anni fa
parent
commit
24215f39f9
1 ha cambiato i file con 5 aggiunte e 2 eliminazioni
  1. 5 2
      docker/alpine/Dockerfile_alpine

+ 5 - 2
docker/alpine/Dockerfile_alpine

@@ -177,10 +177,13 @@ RUN echo "  => Configure and compile grass" && \
 RUN ln -s `find /usr/local/bin -name "grass*"` /usr/local/bin/grass
 RUN ln -s `find /usr/local/bin -name "grass*"` /usr/local/bin/grass
 
 
 # Reduce the image size - Remove unnecessary grass files
 # Reduce the image size - Remove unnecessary grass files
-RUN rm -rf /usr/local/grass79/demolocation; \
+RUN cp /usr/local/grass79/gui/wxpython/xml/module_items.xml module_items.xml; \
+    rm -rf /usr/local/grass79/demolocation; \
     rm -rf /usr/local/grass79/fonts; \
     rm -rf /usr/local/grass79/fonts; \
     rm -rf /usr/local/grass79/gui; \
     rm -rf /usr/local/grass79/gui; \
-    rm -rf /usr/local/grass79/share;
+    rm -rf /usr/local/grass79/share; \
+    mkdir -p /usr/local/grass79/gui/wxpython/xml/; \
+    mv module_items.xml /usr/local/grass79/gui/wxpython/xml/module_items.xml;
 
 
 
 
 FROM common as grass
 FROM common as grass