We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21f4f95 commit e8cab83Copy full SHA for e8cab83
mongodb/Dockerfile
@@ -1,8 +1,10 @@
1
-FROM ubuntu:16.04
+FROM ubuntu:18.04
2
3
-RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2930ADAE8CAF5059EE73BB4B58712A2291FA4AD5
+RUN apt-get update && apt-get install -y wget gnupg
4
5
-RUN echo "deb [ arch=amd64,arm64 ] http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.6 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-3.6.list
+RUN wget -qO - https://www.mongodb.org/static/pgp/server-4.2.asc | apt-key add -
6
+
7
+RUN echo "deb [ arch=amd64 ] http://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.2 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-4.2.list
8
9
RUN apt-get update && apt-get install -y mongodb-org && apt-get clean
10
0 commit comments