mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-25 17:42:25 +01:00
updated Dockerfile
This commit is contained in:
@@ -30,7 +30,7 @@ ENV NODE_PATH $NVM_DIR/versions/node/v$NODE_VERSION/lib/node_modules
|
||||
ENV PATH $NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH
|
||||
|
||||
# install frontend
|
||||
RUN npm install -g yarn pm2 --registry=https://registry.npm.taobao.org \
|
||||
RUN npm install -g yarn --registry=https://registry.npm.taobao.org \
|
||||
&& cd /opt/crawlab/frontend \
|
||||
&& yarn install --registry=https://registry.npm.taobao.org
|
||||
|
||||
|
||||
@@ -3,9 +3,7 @@ case $1 in
|
||||
master)
|
||||
cd /opt/crawlab/frontend \
|
||||
&& npm run build:prod \
|
||||
&& service nginx start \
|
||||
&& mongod --fork --logpath /var/log/mongod.log
|
||||
redis-server >> /var/log/redis-server.log 2>&1 &
|
||||
&& service nginx start
|
||||
python $WORK_DIR/crawlab/flower.py >> /opt/crawlab/flower.log 2>&1 &
|
||||
python $WORK_DIR/crawlab/worker.py >> /opt/crawlab/worker.log 2>&1 &
|
||||
python $WORK_DIR/crawlab/app.py
|
||||
|
||||
Reference in New Issue
Block a user