From c95df4d1e71af8a5cf48ab7095e8a549140e5c9c Mon Sep 17 00:00:00 2001 From: Matheus Afonso Date: Sat, 9 Dec 2023 23:27:26 -0300 Subject: [PATCH] feat: run migrations on dockerfile --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index 2539d40..be2cd11 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"]