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
@@ -16,6 +16,13 @@ ENV WORK_DIR /opt/crawlab
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y curl git
|
||||
|
||||
# install mongodb
|
||||
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
|
||||
RUN echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/4.0 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-4.0.list
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y mongodb-org
|
||||
RUN service mongod start
|
||||
|
||||
# install python
|
||||
RUN apt-get install -y python python3 python3-pip net-tools iputils-ping ntp
|
||||
|
||||
@@ -39,13 +46,6 @@ RUN apt-get install -y nginx
|
||||
RUN apt-get install -y redis-server
|
||||
RUN service redis-server start
|
||||
|
||||
# install mongodb
|
||||
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
|
||||
RUN echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/4.0 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-4.0.list
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y mongodb-org
|
||||
RUN service mongod start
|
||||
|
||||
# python soft link
|
||||
RUN ln -s /usr/bin/pip3 /usr/local/bin/pip
|
||||
RUN ln -s /usr/bin/python3 /usr/local/bin/python
|
||||
|
||||
Reference in New Issue
Block a user