优化:已知问题

This commit is contained in:
2025-07-22 13:27:07 +08:00
parent 2b5ff62ff0
commit 505afb8c0d
29 changed files with 2144 additions and 6 deletions

20
Dockerfile Normal file
View File

@@ -0,0 +1,20 @@
# 使用官方nginx镜像作为基础镜像
FROM nginx:alpine
# 设置工作目录
WORKDIR /usr/share/nginx/html
# 删除nginx默认的静态文件
RUN rm -rf /usr/share/nginx/html/*
# 复制dist目录下的所有文件到nginx的html目录
COPY dist/ /usr/share/nginx/html/
# 创建自定义nginx配置文件
COPY nginx.conf /etc/nginx/conf.d/default.conf
# 暴露80端口
EXPOSE 80
# 启动nginx
CMD ["nginx", "-g", "daemon off;"]