fix docker

This commit is contained in:
Kevin
2026-05-22 10:25:34 +08:00
parent 2866fd3a1d
commit 7600c5da2f
3 changed files with 14 additions and 2 deletions

View File

@@ -10,6 +10,15 @@ __pycache__
.env.* .env.*
!.env.example !.env.example
!.env.prod !.env.prod
algorithm_subprocesses # 算法子进程包需打进镜像offline-batch / 5.15 main.py仅忽略运行时 I/O
algorithm_subprocesses/**/input/*
!algorithm_subprocesses/**/input/.gitkeep
algorithm_subprocesses/**/output/*
!algorithm_subprocesses/**/output/.gitkeep
algorithm_subprocesses/**/data/*
!algorithm_subprocesses/**/data/.gitkeep
algorithm_subprocesses/**/*.mp4
algorithm_subprocesses/**/*.xlsx
algorithm_subprocesses/**/*.xls
*.md *.md
.dockerignore .dockerignore

View File

@@ -36,6 +36,8 @@ ENV PYTHONUNBUFFERED=1 \
COPY pyproject.toml uv.lock main.py alembic.ini ./ COPY pyproject.toml uv.lock main.py alembic.ini ./
COPY app ./app/ COPY app ./app/
COPY alembic ./alembic/ COPY alembic ./alembic/
# 离线批处理 / demo 直调 algorithm_subprocesses/5.15/main.py含 weights/
COPY algorithm_subprocesses ./algorithm_subprocesses/
# uv.lock pins full download URLs. Rewrite to mainland-accessible mirrors (same paths / hashes). # uv.lock pins full download URLs. Rewrite to mainland-accessible mirrors (same paths / hashes).
# PyPI: Tsinghua | PyTorch wheel index: 南大 (syncs download.pytorch.org / download-r2) # PyPI: Tsinghua | PyTorch wheel index: 南大 (syncs download.pytorch.org / download-r2)

View File

@@ -25,7 +25,8 @@ operation-room-monitor/
- Docker Compose V2、NVIDIA 驱动、NVIDIA Container Toolkit - Docker Compose V2、NVIDIA 驱动、NVIDIA Container Toolkit
- 复制 `backend/.env.example``backend/.env` 并填写 - 复制 `backend/.env.example``backend/.env` 并填写
- ActionFormer 权重:`backend/app/resources/actionformer_epoch_045.pth.tar` - 算法子进程包:`backend/algorithm_subprocesses/5.15/`(含 `main.py``weights/`;镜像构建时会 `COPY` 进容器,勿在 `.dockerignore` 中整目录排除)
- 可选备用权重:`backend/app/resources/actionformer_epoch_045.pth.tar`
--- ---