Skip to content

Commit 96cad24

Browse files
committed
build(docker): 增加nginx版本号
1 parent eba2e8e commit 96cad24

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@ WORKDIR /app
44
COPY . .
55

66
RUN npm install -g pnpm --registry=https://registry.npmmirror.com
7+
RUN pnpm config set registry https://registry.npmmirror.com
78
RUN pnpm install
89

910
RUN ["pnpm", "build"]
1011

11-
FROM nginx:stable-alpine
12+
FROM nginx:1.25.3
1213
COPY --from=0 /app/dist /usr/share/nginx/html/
1314
COPY nginx.conf /etc/nginx/conf.d/
15+

0 commit comments

Comments
 (0)