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