mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-22 17:31:03 +01:00
updated Dockerfile
This commit is contained in:
11
Dockerfile
11
Dockerfile
@@ -16,21 +16,18 @@ ENV WORK_DIR /opt/crawlab
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y curl git
|
||||
|
||||
|
||||
# install nvm
|
||||
RUN curl https://raw.githubusercontent.com/creationix/nvm/v0.24.0/install.sh | bash \
|
||||
&& . $NVM_DIR/nvm.sh \
|
||||
&& nvm install v$NODE_VERSION \
|
||||
&& nvm use v$NODE_VERSION \
|
||||
&& nvm alias default v$NODE_VERSION
|
||||
ENV NODE_PATH $NVM_DIR/versions/v$NODE_VERSION/lib/node_modules
|
||||
ENV PATH $NVM_DIR/versions/v$NODE_VERSION/bin:$PATH
|
||||
|
||||
RUN ls $NVM_DIR/versions/v$NODE_VERSION/bin
|
||||
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 $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
|
||||
RUN npm install -g yarn pm2
|
||||
RUN cd /opt/crawlab/frontend && yarn install
|
||||
|
||||
# install python
|
||||
RUN apt-get install -y python3 python3-pip net-tools iputils-ping nginx ntp
|
||||
|
||||
Reference in New Issue
Block a user