diff --git a/hms_mongo/Dockerfile b/hms_mongo/Dockerfile index d36afeb..fd83b2d 100644 --- a/hms_mongo/Dockerfile +++ b/hms_mongo/Dockerfile @@ -5,7 +5,8 @@ -FROM ubuntu:23.10 +FROM ubuntu:24.10 +ENV MONGO_VERSION=6.0.16 RUN apt-get update && apt-get install -y gnupg curl @@ -17,11 +18,11 @@ RUN echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-6. RUN apt-get update && \ apt-get install -y \ - mongodb-org=6.0.8 \ - mongodb-org-database=6.0.8 \ - mongodb-org-server=6.0.8 \ - mongodb-org-mongos=6.0.8 \ - mongodb-org-tools=6.0.8 + mongodb-org=${MONGO_VERSION} \ + mongodb-org-database=${MONGO_VERSION} \ + mongodb-org-server=${MONGO_VERSION} \ + mongodb-org-mongos=${MONGO_VERSION} \ + mongodb-org-tools=${MONGO_VERSION} RUN mkdir -p /data/db