Skip to content

Commit e8cab83

Browse files
committed
Updated to use Ubuntu 18.04 and MongoDB 4.2
1 parent 21f4f95 commit e8cab83

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

mongodb/Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
FROM ubuntu:16.04
1+
FROM ubuntu:18.04
22

3-
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2930ADAE8CAF5059EE73BB4B58712A2291FA4AD5
3+
RUN apt-get update && apt-get install -y wget gnupg
44

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
5+
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
68

79
RUN apt-get update && apt-get install -y mongodb-org && apt-get clean
810

0 commit comments

Comments
 (0)