This commit is contained in:
aixianling
2024-09-20 12:02:02 +08:00
commit e6a0613681
615 changed files with 96144 additions and 0 deletions

16
docker/Dockerfile Normal file
View File

@@ -0,0 +1,16 @@
# 使用 Nginx 镜像作为最终镜像
FROM nginx:alpine
# 设置工作目录
WORKDIR /usr/share/nginx/html
# 复制 文件
COPY ../dist/ /usr/share/nginx/html/
COPY ./nginx.conf /etc/nginx/conf.d/default.conf
# 暴露端口
EXPOSE 80
# 启动 Nginx
CMD ["nginx", "-g", "daemon off;"]

11
docker/nginx.conf Normal file
View File

@@ -0,0 +1,11 @@
server {
listen 80;
server_name localhost;
location / {
error_page 404 /index.html;
root /usr/share/nginx/html;
index index.html;
try_files $uri $uri/ /index.html;
}
}