Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +5 -5
Dockerfile
CHANGED
|
@@ -12,11 +12,11 @@ ENV MODEL_NAME=${MODEL_NAME}
|
|
| 12 |
ENV TZ=Europe/Paris \
|
| 13 |
PORT=3000
|
| 14 |
|
| 15 |
-
#
|
| 16 |
-
RUN apt-get update &&
|
| 17 |
-
mongodb-
|
| 18 |
-
|
| 19 |
-
curl && \
|
| 20 |
rm -rf /var/lib/apt/lists/*
|
| 21 |
|
| 22 |
# Create user and directories
|
|
|
|
| 12 |
ENV TZ=Europe/Paris \
|
| 13 |
PORT=3000
|
| 14 |
|
| 15 |
+
# Install MongoDB and other dependencies
|
| 16 |
+
RUN apt-get update && apt-get install -y gnupg curl lsb-release ca-certificates && \
|
| 17 |
+
curl -fsSL https://www.mongodb.org/static/pgp/server-7.0.asc | gpg --dearmor -o /usr/share/keyrings/mongodb-archive-keyring.gpg && \
|
| 18 |
+
echo "deb [signed-by=/usr/share/keyrings/mongodb-archive-keyring.gpg] https://repo.mongodb.org/apt/ubuntu $(lsb_release -sc)/mongodb-org/7.0 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-7.0.list && \
|
| 19 |
+
apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends mongodb-org nodejs curl && \
|
| 20 |
rm -rf /var/lib/apt/lists/*
|
| 21 |
|
| 22 |
# Create user and directories
|