Files
tianxuan-company/Dockerfile
Jowe 3c0fbd5059 feat: 集成 DeepSeek AI 服务
- 新增 backend 服务 (Express + TypeScript)
- 前端表单提交改为调用后端 API
- DeepSeek 增强分析结果,本地规则作为 fallback
- Docker 双容器部署:web (Nginx) + backend
- Nginx 反向代理 /api 到后端服务
- 本地开发支持 Vite 代理 + backend:dev 脚本

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-28 01:37:52 +08:00

33 lines
562 B
Docker
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
FROM node:20-alpine AS builder
WORKDIR /app
# 安装 pnpm如果需要
# RUN corepack enable && corepack prepare pnpm@latest --activate
# 复制依赖文件
COPY package*.json ./
# 安装依赖
RUN npm install
# 复制源码
COPY . .
# 构建生产版本
RUN npm run build
# 运行阶段 - 使用 Nginx
FROM nginx:alpine
# 从构建阶段复制产物
COPY --from=builder /app/dist /usr/share/nginx/html
# 复制 Nginx 配置
COPY nginx.conf /etc/nginx/conf.d/default.conf
# 暴露端口
EXPOSE 80
# 启动 Nginx
CMD ["nginx", "-g", "daemon off;"]