瀏覽代碼

HUE-8888 [docker] Avoid hardcoding the static file container source

In the NGINX image.
Romain 6 年之前
父節點
當前提交
73ccc6afeb
共有 1 個文件被更改,包括 7 次插入2 次删除
  1. 7 2
      tools/docker/nginx/Dockerfile

+ 7 - 2
tools/docker/nginx/Dockerfile

@@ -1,9 +1,14 @@
 # Welcome to Hue NGINX (http://gethue.com) Dockerfile
+ARG registry=gethue
+ARG tag=latest
+
+FROM ${registry}/hue:${tag} as base
+
 
 FROM nginx
-LABEL description="Host files of Hue"
+LABEL description="Static files of Hue service"
 
-COPY --from=gethue/hue:latest /usr/share/hue/build/static/ /usr/share/nginx/html/hue/static
+COPY --from=base /usr/share/hue/build/static/ /usr/share/nginx/html/hue/static
 
 RUN rm /etc/nginx/conf.d/default.conf