Merge pull request #117 from cartsnitch/betty/fix-alembic-dockerfile

fix(api): include alembic config and migrations in Docker image
This commit is contained in:
cartsnitch-cto[bot]
2026-04-04 04:44:47 +00:00
committed by GitHub
+3 -1
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
@@ -23,4 +25,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"]
CMD ["uvicorn", "cartsnitch_api.main:app", "--host", "0.0.0.0", "--port", "8000"]