florentgbelidji HF staff commited on
Commit
4f43f95
1 Parent(s): 442ab94

Upgrade MongoDB installation in Dockerfile

Browse files

Updated the installation of MongoDB as in https://www.mongodb.com/docs/manual/tutorial/install-mongodb-on-ubuntu/
Previously creating a ChatUI with this template was throwing a libssl dependency error as in https://www.mongodb.com/community/forums/t/installing-mongodb-over-ubuntu-22-04/159931.

Files changed (1) hide show
  1. 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://pgp.mongodb.com/server-6.0.asc | \
87
- gpg -o /usr/share/keyrings/mongodb-server-6.0.gpg \
88
- --dearmor
89
 
90
- RUN echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-6.0.gpg ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/6.0 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-6.0.list
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 && \