fix(deploy): include alembic in API Docker image

Adds alembic.ini and alembic/ directory to the production API image so
alembic upgrade head can run in-cluster as an init container.

Also carries migration 003 (make hashed_password nullable) from PR #66.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
Barcode Betty
2026-03-30 20:13:56 +00:00
committed by cartsnitch-ci[bot]
parent 2c64ab9e98
commit 2b50aad682
3 changed files with 29 additions and 1 deletions
+2
View File
@@ -16,6 +16,8 @@ WORKDIR /app
RUN adduser --system --group --uid 1000 app
COPY --from=build /install /usr/local
COPY src/ ./src/
COPY alembic.ini ./
COPY alembic/ ./alembic/
USER 1000
EXPOSE 8000