From 3d71d2b36275386f60edba1d132da1d73a18756d Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 1 Mar 2026 17:55:06 +0000 Subject: [PATCH] fix(docker): copy migrations directory and alembic.ini into Docker image The Docker container failed to start because the Alembic migrations directory was not being copied into the image. The init_db() function calls _run_alembic_upgrade() which requires /app/migrations to exist. Added COPY instructions for ./migrations and ./alembic.ini to both Dockerfile and Dockerfile.local. Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com> --- Dockerfile | 2 ++ Dockerfile.local | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index 16deb378..e7d33227 100644 --- a/Dockerfile +++ b/Dockerfile @@ -33,6 +33,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ # Copy application code COPY ./app /app/app COPY ./frontend /app/frontend +COPY ./migrations /app/migrations +COPY ./alembic.ini /app/alembic.ini COPY ./LICENSE /app/LICENSE # Copy build metadata files (generated at build time) diff --git a/Dockerfile.local b/Dockerfile.local index 2775c156..4ae482d0 100644 --- a/Dockerfile.local +++ b/Dockerfile.local @@ -27,6 +27,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ COPY ./app /app/app COPY ./frontend /app/frontend +COPY ./migrations /app/migrations +COPY ./alembic.ini /app/alembic.ini COPY ./LICENSE /app/LICENSE COPY ./VERSION /app/VERSION COPY ./BUILD_DATE /app/BUILD_DATE