fix(docker): add validate_release_env.py to API image
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 189h37m38s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 189h37m41s

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]
This commit is contained in:
CI Test
2026-07-01 15:16:43 +08:00
parent 3b9a7b6df6
commit 4812249e4e
+1
View File
@@ -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"