From f58f3c11b546554823361f234260df8a8226f295 Mon Sep 17 00:00:00 2001 From: Jeremy Stein Date: Sat, 21 Dec 2024 09:44:11 +0000 Subject: [PATCH] Reference script in new layout (which is now closer to original source tree) --- docker/pixl-python/Dockerfile | 2 +- pixl_imaging/scripts/migrate_and_run.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docker/pixl-python/Dockerfile b/docker/pixl-python/Dockerfile index 5578e4975..e84b62047 100644 --- a/docker/pixl-python/Dockerfile +++ b/docker/pixl-python/Dockerfile @@ -74,4 +74,4 @@ FROM pixl_python_base AS hasher_api ENTRYPOINT ["uvicorn", "hasher.main:app", "--host", "0.0.0.0", "--port", "8000"] FROM pixl_python_base AS imaging_api -ENTRYPOINT ["/app/scripts/migrate_and_run.sh"] +ENTRYPOINT ["/app/pixl_imaging/scripts/migrate_and_run.sh"] diff --git a/pixl_imaging/scripts/migrate_and_run.sh b/pixl_imaging/scripts/migrate_and_run.sh index 9e8b78634..5d0c12d6d 100755 --- a/pixl_imaging/scripts/migrate_and_run.sh +++ b/pixl_imaging/scripts/migrate_and_run.sh @@ -17,7 +17,7 @@ # Run migrations (unless SKIP_ALEMBIC is true) then run the app. set -eux -o pipefail -cd /app/alembic +cd /app/pixl_imaging/alembic if [ "${SKIP_ALEMBIC:-false}" = false ]; then echo "Running alembic migrations" alembic upgrade head @@ -25,4 +25,4 @@ else echo "Skipping alembic migrations" fi -uvicorn pixl_imaging.main:app --host "0.0.0.0" --port 8000 \ No newline at end of file +uvicorn pixl_imaging.main:app --host "0.0.0.0" --port 8000