fix docker
This commit is contained in:
@@ -10,6 +10,15 @@ __pycache__
|
||||
.env.*
|
||||
!.env.example
|
||||
!.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
|
||||
.dockerignore
|
||||
|
||||
@@ -36,6 +36,8 @@ ENV PYTHONUNBUFFERED=1 \
|
||||
COPY pyproject.toml uv.lock main.py alembic.ini ./
|
||||
COPY app ./app/
|
||||
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).
|
||||
# PyPI: Tsinghua | PyTorch wheel index: 南大 (syncs download.pytorch.org / download-r2)
|
||||
|
||||
@@ -25,7 +25,8 @@ operation-room-monitor/
|
||||
|
||||
- Docker Compose V2、NVIDIA 驱动、NVIDIA Container Toolkit
|
||||
- 复制 `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`
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user