Skip to content

Commit

Permalink
Add alembic migrations to the Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Darky2020 committed Aug 18, 2024
1 parent b8c6d0a commit e645775
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ RUN poetry install --no-root && rm -rf $POETRY_CACHE_DIR

COPY sync.py .
COPY aggregator.py .
COPY alembic ./alembic
COPY app ./app

CMD poetry run gunicorn "app:create_app()" --workers 4 --worker-class uvicorn.workers.UvicornWorker -b 0.0.0.0:8000
CMD poetry run alembic upgrade head && poetry run gunicorn "app:create_app()" --workers 4 --worker-class uvicorn.workers.UvicornWorker -b 0.0.0.0:8000

0 comments on commit e645775

Please sign in to comment.