yazid138 2 năm trước cách đây
mục cha
commit
b34a8124fe
1 tập tin đã thay đổi với 5 bổ sung6 xóa
  1. 5 6
      dockerfile

+ 5 - 6
dockerfile

@@ -1,11 +1,5 @@
 FROM node:14
 
-# Install Depends
-ARG MONGODB_DB_TOOLS_UR="https://fastdl.mongodb.org/tools/db/mongodb-database-tools-ubuntu2004-x86_64-100.7.5.deb"
-ADD ${MONGODB_DB_TOOLS_URL} /mongodb-tools.deb
-RUN apt install /mongodb-tools.deb
-RUN rm /mongodb-tools.deb
-
 # Create app directory
 RUN mkdir -p /usr/src/app
 WORKDIR /usr/src/app
@@ -17,6 +11,11 @@ RUN npm install
 # Copying source files
 COPY . .
 
+# Install MongoDB tools (mongodump) - this example assumes you're using Debian/Ubuntu-based image
+RUN apt-get update && \
+    apt-get install -y mongodb-clients && \
+    apt-get clean
+
 # Building app
 EXPOSE 5000