Prechádzať zdrojové kódy

HUE-9030 [docker] Trim some size to the image by removing node modules

Romain 6 rokov pred
rodič
commit
8b64e3ff12
1 zmenil súbory, kde vykonal 2 pridanie a 0 odobranie
  1. 2 0
      tools/docker/hue/Dockerfile

+ 2 - 0
tools/docker/hue/Dockerfile

@@ -50,8 +50,10 @@ RUN PREFIX=/usr/share make install
 RUN useradd -ms /bin/bash hue && chown -R hue /usr/share/hue
 
 # Only keep install dir
+# Note: get more minimal image by pulling install dir in a stage 2 image
 WORKDIR /usr/share/hue
 RUN rm -rf /hue
+RUN rm -rf node_modules
 
 # Install DB connectors
 RUN ./build/env/bin/pip install psycopg2-binary