update
This commit is contained in:
parent
a4acc4752d
commit
a47fb3e58c
@ -1,5 +1,5 @@
|
||||
# 构建阶段
|
||||
FROM node:16-alpine as build-stage
|
||||
FROM node:16 AS builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
@ -40,7 +40,7 @@ RUN mkdir -p /var/cache/nginx/client_temp \
|
||||
COPY nginx.conf /etc/nginx/nginx.conf
|
||||
|
||||
# 从构建阶段复制构建结果
|
||||
COPY --from=build-stage /app/dist /usr/share/nginx/html
|
||||
COPY --from=builder /app/dist /usr/share/nginx/html
|
||||
|
||||
# 修改目录权限
|
||||
RUN chown -R nginx:nginx /usr/share/nginx/html \
|
||||
|
||||
Loading…
Reference in New Issue
Block a user