@dazhicheng/common 1.0.12 → 1.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Dockerfile +3 -4
- package/package.json +1 -1
package/Dockerfile
CHANGED
|
@@ -10,13 +10,12 @@ RUN npm install -g pnpm && \
|
|
|
10
10
|
ARG NODE_ENV=dev
|
|
11
11
|
|
|
12
12
|
# 先复制依赖文件并安装依赖
|
|
13
|
-
COPY
|
|
14
|
-
COPY
|
|
13
|
+
COPY . .
|
|
14
|
+
# COPY package*.json pnpm-lock.yaml* pnpm-workspace.yaml ./
|
|
15
|
+
# COPY scripts/sync-common.mjs ./scripts/
|
|
15
16
|
RUN pnpm install
|
|
16
17
|
|
|
17
|
-
|
|
18
18
|
# 再复制全部源代码,进行构建
|
|
19
|
-
COPY . .
|
|
20
19
|
RUN pnpm "build:${NODE_ENV}"
|
|
21
20
|
|
|
22
21
|
# 阶段 2:部署到 Nginx
|