integration layer; merge work on indicators from forks with existing ingestion pipeline
This commit is contained in:
+17
-4
@@ -3,10 +3,23 @@ set -e
|
||||
|
||||
mkdir -p /data
|
||||
|
||||
# --no-sync: the image's environments were synced at build time; syncing at
|
||||
# startup would try to reach the package index (and pull dev deps).
|
||||
cd /app/Persistance
|
||||
uv run alembic -c persistance/cacu/alembic.ini upgrade head
|
||||
uv run alembic -c persistance/cama/alembic.ini upgrade head
|
||||
uv run alembic -c persistance/tea/alembic.ini upgrade head
|
||||
uv run --no-sync alembic -c persistance/cacu/alembic.ini upgrade head
|
||||
uv run --no-sync alembic -c persistance/cama/alembic.ini upgrade head
|
||||
uv run --no-sync alembic -c persistance/tea/alembic.ini upgrade head
|
||||
uv run --no-sync alembic -c persistance/governance/alembic.ini upgrade head
|
||||
|
||||
cd /app/WebApi
|
||||
exec uv run python main.py
|
||||
# Container's own network namespace — no AirPlay conflict here, keep it on
|
||||
# the port the Dockerfile EXPOSEs and docker-compose.yml maps from.
|
||||
PORT="${PORT:-5000}"
|
||||
# gunicorn, not Flask's development server. Long timeout: OCR over a
|
||||
# multi-page scanned PDF runs inside a single request.
|
||||
exec uv run --no-sync gunicorn \
|
||||
--bind "0.0.0.0:${PORT}" \
|
||||
--workers "${WEBAPI_WORKERS:-2}" \
|
||||
--timeout "${WEBAPI_TIMEOUT:-600}" \
|
||||
--access-logfile - \
|
||||
"webapi:create_app()"
|
||||
|
||||
Reference in New Issue
Block a user