From 4812249e4e47c841c73d3e7389d65cc93ef09233 Mon Sep 17 00:00:00 2001 From: CI Test Date: Wed, 1 Jul 2026 15:16:43 +0800 Subject: [PATCH] fix(docker): add validate_release_env.py to API image deploy-production.sh runs validate_release_env.py inside the API container before alembic upgrade. The script was missing from the image because api.Dockerfile did not COPY scripts/. This caused production deploy to fail with: python: can't open file '/app/scripts/validate_release_env.py': [Errno 2] --- infra/docker/api.Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/infra/docker/api.Dockerfile b/infra/docker/api.Dockerfile index 0f1d78051..be3e3bfc0 100644 --- a/infra/docker/api.Dockerfile +++ b/infra/docker/api.Dockerfile @@ -34,6 +34,7 @@ COPY packages/ /app/packages/ COPY alembic.ini /app/alembic.ini COPY migrations/ /app/migrations/ COPY alembic/ /app/alembic/ +COPY scripts/validate_release_env.py /app/scripts/validate_release_env.py # 设置环境变量 ENV PATH="/opt/venv/bin:$PATH" -- 2.54.0