yazid138 2 年之前
父节点
当前提交
c0067b25fd
共有 1 个文件被更改,包括 3 次插入5 次删除
  1. 3 5
      dockerfile

+ 3 - 5
dockerfile

@@ -1,11 +1,9 @@
 FROM node:14
 
 # Install Depends
-RUN apt install wget &&  \
-    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-get update && \
-    apt install mongodb-org-tools
+RUN wget -qO - https://www.mongodb.org/static/pgp/server-6.0.asc | apt-key add -
+RUN 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
+RUN apt-get update && install mongodb-org-tools
 
 # Create app directory
 RUN mkdir -p /usr/src/app