From 7fc2054b8b340d9629297a0fb9ef731f123622af Mon Sep 17 00:00:00 2001 From: Kally <60466044+kallyas@users.noreply.github.com> Date: Sat, 26 Aug 2023 14:52:47 +0300 Subject: [PATCH] Update Dockerfile --- server/Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/server/Dockerfile b/server/Dockerfile index dd08780..a503249 100644 --- a/server/Dockerfile +++ b/server/Dockerfile @@ -10,11 +10,12 @@ RUN apk add --no-cache python3 make g++ # Copy package.json and package-lock.json COPY server/package.json server/package-lock.json ./ -# Install dependencies -RUN npm install --production +# Add the Alpine Linux v3.6 main and community repositories +RUN echo 'http://dl-cdn.alpinelinux.org/alpine/v3.6/main' >> /etc/apk/repositories +RUN echo 'http://dl-cdn.alpinelinux.org/alpine/v3.6/community' >> /etc/apk/repositories -# Install MongoDB server -RUN apk add --no-cache mongodb +# Install MongoDB tools from the added repositories +RUN apk add --no-cache mongodb-tools # Create a directory for MongoDB data and logs RUN mkdir -p /data/db /var/log/mongodb