Compare commits
No commits in common. "a3d80b10237c92b2d994c345d90df494ba70bacc" and "e3ee8e2e517230f7d2e4f9060c157e53af806527" have entirely different histories.
a3d80b1023
...
e3ee8e2e51
@ -23,10 +23,9 @@ RUN npm run build
|
|||||||
# 生产阶段
|
# 生产阶段
|
||||||
FROM nginx:stable-alpine as production-stage
|
FROM nginx:stable-alpine as production-stage
|
||||||
|
|
||||||
# 将构建好的文件复制到 nginx 目录
|
# 复制构建产物到 Nginx 目录
|
||||||
COPY --from=build-stage /app/dist /usr/share/nginx/html/
|
COPY --from=build-stage /app/dist /usr/share/nginx/html
|
||||||
# 将 static 目录下的文件直接复制到网站根目录
|
|
||||||
COPY --from=build-stage /app/src/static /usr/share/nginx/html/
|
|
||||||
|
|
||||||
# 暴露 80 端口
|
# 暴露 80 端口
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
|||||||
@ -1 +0,0 @@
|
|||||||
377f116f44bc2d536eb1d6db9d339cbd
|
|
||||||
Loading…
Reference in New Issue
Block a user