瀏覽代碼

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

Romain 6 年之前
父節點
當前提交
8b64e3ff12
共有 1 個文件被更改,包括 2 次插入0 次删除
  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