updated Dockerfile

This commit is contained in:
Marvin Zhang
2019-06-09 23:47:20 +08:00
parent fd35fd7367
commit 6aa40c25eb

View File

@@ -21,7 +21,7 @@ RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75
RUN 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
RUN apt-get update
RUN apt-get install -y mongodb-org
RUN service mongod start
RUN mongod >> /var/log/mongod.log 2>&1 &
# install python
RUN apt-get install -y python python3 python3-pip