chore: 添加前后端 Dockerfile 和 DockerCompose 编排文件,添加部署脚本和工作流 #66

Merged
huanghaosheng merged 5 commits from chore/add-docker into develop 2026-06-14 13:41:23 +08:00
No description provided.
huanghaosheng added 5 commits 2026-06-14 13:40:49 +08:00
- 多阶段构建:node:22-alpine 构建,nginx:stable-alpine 运行
- Nginx 配置:静态文件服务 + /api /ws 反代到后端
- 多阶段构建:golang:1.24-alpine 编译,alpine:3.20 运行
- CGO_ENABLED=0 静态链接,包含 ca-certificates 和时区数据
- frontend 和 backend 两个服务,共享 camtalk-net 网络
- backend 通过 .env 注入 API Key,不对外暴露端口
- frontend 通过 Nginx 反代对外暴露 80 端口
- 支持 build / up / down / restart / logs / status 命令
- 首次运行自动从 .env.example 生成 .env 模板
- PR 到 main 时验证 Docker 镜像构建
- push 到 main 时自动构建并部署,含健康检查
huanghaosheng merged commit 7b3f4706e1 into develop 2026-06-14 13:41:23 +08:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: XEngineers/CamTalk#66