From a23f4b27336490c314e608baf7812bfc5068fa03 Mon Sep 17 00:00:00 2001 From: Marvin Zhang Date: Sun, 9 Jun 2019 20:21:37 +0800 Subject: [PATCH] updated Dockerfile --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 421f1430..6c2d60e1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -36,8 +36,8 @@ ENV PATH $NVM_DIR/versions/v$NODE_VERSION/bin:$PATH RUN ls $NVM_DIR/versions/v$NODE_VERSION/bin # install frontend -RUN $NVM_DIR/v$NODE_VERSION/bin/npm install -g yarn pm2 -RUN cd /opt/crawlab/frontend && $NVM_DIR/v$NODE_VERSION/bin/yarn install +RUN $NVM_DIR/versions/v$NODE_VERSION/bin/npm install -g yarn pm2 +RUN cd /opt/crawlab/frontend && $NVM_DIR/versions/v$NODE_VERSION/bin/yarn install # nginx config & start frontend RUN cp $WORK_DIR/crawlab.conf /etc/nginx/conf.d