From 2055a7bb086785be7c44f48f703383e45ec9a679 Mon Sep 17 00:00:00 2001 From: Dmytro Yurin Date: Fri, 22 May 2026 18:59:52 +0300 Subject: [PATCH] chore: update Dockerfile to use start.sh for application startup --- apps/api/Dockerfile.prod | 4 +++- apps/api/start.sh | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 apps/api/start.sh diff --git a/apps/api/Dockerfile.prod b/apps/api/Dockerfile.prod index c89e18e..8f90f64 100644 --- a/apps/api/Dockerfile.prod +++ b/apps/api/Dockerfile.prod @@ -12,4 +12,6 @@ COPY . . ENV PYTHONPATH=/app -CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000", "--workers", "2"] +RUN chmod +x start.sh + +CMD ["./start.sh"] diff --git a/apps/api/start.sh b/apps/api/start.sh new file mode 100644 index 0000000..fcd6dbd --- /dev/null +++ b/apps/api/start.sh @@ -0,0 +1,3 @@ +#!/bin/sh +uv run alembic upgrade head +uvicorn app.main:app --host 0.0.0.0 --port 8000 --workers 2