From 6bebe0dd5d2e240289aafb639d45733c7bc3a9d6 Mon Sep 17 00:00:00 2001 From: Marvin Zhang Date: Sun, 9 Jun 2019 19:31:14 +0800 Subject: [PATCH] updated Dockerfile --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5aebb197..688bb2ea 100644 --- a/Dockerfile +++ b/Dockerfile @@ -41,8 +41,8 @@ RUN export NODE_PATH=$NVM_DIR/v$NODE_VERSION/lib/node_modules RUN export PATH=$NVM_DIR/v$NODE_VERSION/bin:$PATH # install frontend -RUN npm install -g yarn pm2 -RUN cd /opt/crawlab/frontend && yarn install +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 # nginx config & start frontend RUN cp $WORK_DIR/crawlab.conf /etc/nginx/conf.d