From 53e802746c0618bab24ffa0cd6826fc1106c5c4e Mon Sep 17 00:00:00 2001 From: Stockboy Steve Date: Tue, 31 Mar 2026 19:52:00 +0000 Subject: [PATCH] fix(api): run Alembic migrations on startup to fix auth 500s Co-Authored-By: Paperclip --- api/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/Dockerfile b/api/Dockerfile index e271e94..7c3df44 100644 --- a/api/Dockerfile +++ b/api/Dockerfile @@ -30,4 +30,4 @@ EXPOSE 8000 HEALTHCHECK --interval=30s --timeout=3s \ CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:8000/health')" -CMD ["uvicorn", "cartsnitch_api.main:app", "--host", "0.0.0.0", "--port", "8000"] \ No newline at end of file +CMD ["sh", "-c", "python -m alembic upgrade head && uvicorn cartsnitch_api.main:app --host 0.0.0.0 --port 8000"] \ No newline at end of file