Fundamental_Analysis/frontend/Dockerfile
Lv, Qi 3d0fd6f704 refactor(phase0-1): 容器化与配置服务拆分,并清理根目录
- 新增 docker-compose 与 Tiltfile,容器化 backend/frontend/postgres(宿主口+10000)
- 新增 services/config-service(GET /api/v1/system, /analysis-modules),并加入 compose
- backend ConfigManager 移除本地文件回退,强制依赖 config-service
- 新增 backend/frontend Dockerfile
- 清理根目录:移动 pm2.config.js -> deployment/;dev.py -> scripts/;删除根 package.json 与 lock
- 新增 .gitignore,忽略二进制与临时文件
2025-11-08 21:07:38 +08:00

23 lines
509 B
Docker
Raw Permalink 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.

# syntax=docker/dockerfile:1.6
FROM node:20-alpine AS base
ENV NODE_ENV=development \
NEXT_TELEMETRY_DISABLED=1 \
CI=false
WORKDIR /workspace/frontend
# 仅复制依赖清单,最大化利用缓存
COPY frontend/package.json frontend/package-lock.json ./
# 使用 npm ci若失败则回退 npm install避免镜像构建被锁文件问题卡住
RUN npm ci || npm install
# 运行时通过挂载卷提供源码
RUN mkdir -p /workspace/frontend
# 缺省入口由 docker-compose 提供