Skip to content

Commit

Permalink
feat: run migrations on dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Matheusafonsouza committed Dec 10, 2023
1 parent 83e725a commit c95df4d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,7 @@ RUN apt-get purge -y \
COPY . /app/src/
RUN poetry install --only main

# Running migrations
RUN alembic upgrade head

CMD ["/usr/local/bin/python", "-m", "gestao"]

0 comments on commit c95df4d

Please sign in to comment.