diff options
| author | 2024-07-09 19:44:24 +0100 | |
|---|---|---|
| committer | 2024-07-21 13:45:30 +0100 | |
| commit | 6de1e262a478973ff3cec0ca896682c3ecdde090 (patch) | |
| tree | 18416e44e05f4314f5ffaa2b7fc3dbc0b77c8ed5 /Dockerfile | |
| parent | Move existing models to schemas namespace (diff) | |
Add alembic boiler plate for migrations
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -18,5 +18,5 @@ ARG git_sha="development" ENV GIT_SHA=$git_sha # Start the server with uvicorn -ENTRYPOINT ["poetry", "run"] -CMD ["uvicorn", "backend:app", "--host", "0.0.0.0", "--port", "8000"] +ENTRYPOINT ["/bin/bash", "-c"] +CMD ["poetry run alembic upgrade head && poetry run uvicorn backend:app --host 0.0.0.0 --port 8000"] |