updated Dockerfile

This commit is contained in:
Marvin Zhang
2019-06-09 23:28:34 +08:00
parent 467ef9ff01
commit acb4fb7368

View File

@@ -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