yazid138 2 жил өмнө
parent
commit
ece4761978
1 өөрчлөгдсөн 4 нэмэгдсэн , 2 устгасан
  1. 4 2
      dockerfile

+ 4 - 2
dockerfile

@@ -5,8 +5,10 @@ RUN mkdir -p /usr/src/app
 WORKDIR /usr/src/app
 
 # Install MongoDB tools
-#RUN apt update &&  \
-#    apt install -y mongodb-clients
+RUN wget -qO - https://www.mongodb.org/static/pgp/server-6.0.asc | apt-key add - &&  \
+    echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/6.0 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-6.0.list && \
+    apt update
+RUN apt install -y mongodb-org-tools
 
 # Installing node dependencies
 COPY package.json ./