mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-21 17:21:09 +01:00
updated Dockerfile
This commit is contained in:
14
Dockerfile
14
Dockerfile
@@ -25,16 +25,9 @@ RUN apt-get update \
|
||||
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4 \
|
||||
&& echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-4.0.list \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y mongodb-org
|
||||
RUN mongod >> /var/log/mongod.log 2>&1 &
|
||||
|
||||
# install python
|
||||
#RUN git clone git://github.com/yyuu/pyenv.git ~/.pyenv
|
||||
#ENV PYENV_ROOT "$HOME/.pyenv"
|
||||
#ENV PATH "$PYENV_ROOT/bin:$PATH"
|
||||
#RUN eval "$(pyenv init -)"
|
||||
#RUN pyenv install 3.6.8
|
||||
#RUN pyenv local 3.6.8
|
||||
&& apt-get install -y mongodb-org \
|
||||
&& mkdir -p /data/db \
|
||||
&& mongod --fork --logpath /var/log/mongod.log
|
||||
|
||||
# install nvm
|
||||
RUN curl https://raw.githubusercontent.com/creationix/nvm/v0.24.0/install.sh | bash \
|
||||
@@ -54,7 +47,6 @@ RUN npm install -g yarn pm2 --registry=https://registry.npm.taobao.org \
|
||||
RUN pip install -U setuptools -i https://pypi.tuna.tsinghua.edu.cn/simple \
|
||||
&& pip install -r /opt/crawlab/crawlab/requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
|
||||
|
||||
|
||||
# start backend
|
||||
EXPOSE 8080
|
||||
EXPOSE 8000
|
||||
|
||||
Reference in New Issue
Block a user