From f9d32c597a7ec3ae5456e9078e21b5acbd881ee7 Mon Sep 17 00:00:00 2001 From: Karmaa Date: Sun, 16 Mar 2025 19:54:11 -0500 Subject: [PATCH] Changes to dockerfile for mongodb 4 support --- docker/Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index a8bdb567..1e4d01ad 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -25,7 +25,8 @@ RUN apk add --no-cache python3 make g++ \ FROM mongo:4.4-focal # Install Node.js and nginx -RUN apt-get update && \ +RUN rm -f /etc/apt/sources.list.d/mongodb*.list && \ + apt-get update && \ # Install curl and gnupg for Node.js repository apt-get install -y --no-install-recommends \ curl \ @@ -38,7 +39,7 @@ RUN apt-get update && \ nginx && \ # Cleanup apt-get clean && \ - rm -rf /var/lib/apt/lists/* \ + rm -rf /var/lib/apt/lists/* && \ rm -rf /var/cache/apt/* # Configure nginx and copy frontend