From f5145c95a430f0c563d3589d75c5c684a05e0b7e Mon Sep 17 00:00:00 2001 From: Marvin Zhang Date: Mon, 10 Jun 2019 22:02:47 +0800 Subject: [PATCH] updated frontend dockerfile --- frontend/Dockerfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 2c7237a8..f49e691f 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -10,8 +10,7 @@ ADD . /opt/crawlab/frontend #ENV WORK_DIR /opt/crawlab/frontend # install git curl -RUN apt-get update -RUN apt-get install -y nginx +RUN apt-get update && apt-get install -y nginx #RUN apt-get install -y git curl # install nvm @@ -28,7 +27,6 @@ RUN npm install -g yarn pm2 --registry=https://registry.npm.taobao.org RUN cd /opt/crawlab/frontend && yarn install --registry=https://registry.npm.taobao.org # nginx config & start frontend -RUN cp $WORK_DIR/conf/crawlab.conf /etc/nginx/conf.d -RUN service nginx reload +RUN cp $WORK_DIR/conf/crawlab.conf /etc/nginx/conf.d && service nginx reload CMD ["npm", "run", "build:prod"]