Spaces:
Runtime error
Runtime error
Upgrade MongoDB installation in Dockerfile
#7
by
florentgbelidji
HF staff
- opened
- Dockerfile +4 -4
Dockerfile
CHANGED
@@ -83,11 +83,11 @@ RUN --mount=type=secret,id=MONGODB_URL,mode=0444 \
|
|
83 |
&& rm entrypoint.sh.template
|
84 |
|
85 |
|
86 |
-
RUN curl -fsSL https://
|
87 |
-
gpg -o /usr/share/keyrings/mongodb-server-
|
88 |
-
|
89 |
|
90 |
-
RUN echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-
|
91 |
|
92 |
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
93 |
mongodb-org && \
|
|
|
83 |
&& rm entrypoint.sh.template
|
84 |
|
85 |
|
86 |
+
RUN curl -fsSL https://www.mongodb.org/static/pgp/server-7.0.asc | \
|
87 |
+
gpg -o /usr/share/keyrings/mongodb-server-7.0.gpg \
|
88 |
+
--dearmor
|
89 |
|
90 |
+
RUN echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-7.0.gpg ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/7.0 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-7.0.list
|
91 |
|
92 |
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
93 |
mongodb-org && \
|