Jelajahi Sumber

更新说明

John 8 bulan lalu
induk
melakukan
756265d739
2 mengubah file dengan 10 tambahan dan 2 penghapusan
  1. 8 0
      README.md
  2. 2 2
      node_expores/Dockerfile

+ 8 - 0
README.md

@@ -1,3 +1,11 @@
 # DB
 地址: localhost:3306
 账号密码:root:12345678
+
+# dockerfile
+
+打包
+```bash
+docker save -o ./newcashBookj.tar hht/cashbook:v1
+```
+

+ 2 - 2
node_expores/Dockerfile

@@ -9,10 +9,10 @@ WORKDIR /app
 
 # 将 package.json 和 yarn.lock 拷贝到容器中
 # COPY package.json yarn.lock ./
-COPY package*.json ./
+# COPY package*.json ./
 
 # 安装依赖,并设置国内镜像
-RUN npm install --registry=https://registry.npmmirror.com
+# RUN npm install --registry=https://registry.npmmirror.com
 
 # 拷贝项目的所有文件到容器中
 COPY . .