Files
timeline-frontend/Dockerfile
jiangh277 5889bf4333
Some checks failed
test/timeline-frontend/pipeline/head There was a failure building this commit
jenkins support
2025-12-26 21:02:15 +08:00

15 lines
310 B
Docker

# 使用 nginx 作为基础镜像
FROM nginx:alpine
# 将构建好的前端文件复制到 nginx 的默认目录
COPY dist/ /usr/share/nginx/html/
# 复制 nginx 配置文件(如果存在)
COPY nginx.conf /etc/nginx/nginx.conf
# 暴露端口
EXPOSE 80
# 启动 nginx
CMD ["nginx", "-g", "daemon off;"]