Skip to content

Commit f9f1702

Browse files
author
142vip.cn
committed
perf(Dockerfile): 支持node18.18.0-alpine
1 parent d6d172f commit f9f1702

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,17 @@
77
#
88
# 注意:vite构建需要支持node14以上,安装node16较为稳妥
99

10-
FROM registry.cn-hangzhou.aliyuncs.com/142vip/node:16.20.2-alpine AS build_base
10+
FROM registry.cn-hangzhou.aliyuncs.com/142vip/node:18.18.0-alpine AS build_base
1111

1212
ARG CONTAINER_BUILD
1313
## 确定工作空间 /apps
1414
WORKDIR /apps
1515
COPY . .
1616

17-
# RUN echo $CONTAINER_BUILD
1817

1918
## 基于容器自动构建
2019
RUN if [ "$CONTAINER_BUILD" = "true" ]; then \
21-
./scripts/ci && pnpm build; \
20+
sh ./scripts/ci && pnpm build; \
2221
fi;
2322

2423
FROM registry.cn-hangzhou.aliyuncs.com/142vip/nginx:1.23.0-alpine

0 commit comments

Comments
 (0)