Compare commits
2 Commits
e3ee8e2e51
...
a3d80b1023
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a3d80b1023 | ||
|
|
214b3782c7 |
@ -23,9 +23,10 @@ RUN npm run build
|
||||
# 生产阶段
|
||||
FROM nginx:stable-alpine as production-stage
|
||||
|
||||
# 复制构建产物到 Nginx 目录
|
||||
COPY --from=build-stage /app/dist /usr/share/nginx/html
|
||||
|
||||
# 将构建好的文件复制到 nginx 目录
|
||||
COPY --from=build-stage /app/dist /usr/share/nginx/html/
|
||||
# 将 static 目录下的文件直接复制到网站根目录
|
||||
COPY --from=build-stage /app/src/static /usr/share/nginx/html/
|
||||
|
||||
# 暴露 80 端口
|
||||
EXPOSE 80
|
||||
|
||||
1
src/static/w2PZhK4ewX.txt
Normal file
1
src/static/w2PZhK4ewX.txt
Normal file
@ -0,0 +1 @@
|
||||
377f116f44bc2d536eb1d6db9d339cbd
|
||||
Loading…
Reference in New Issue
Block a user