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]
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user