Adding entrypoint to seed database

This commit is contained in:
Ian Roddis committed 2026-07-17 17:03:35 -03:00
1 parent aca15db9bf
commit b6dc6dd6b8
4 files changed
+12 -7

No files matched your search

+3 -2
View File
@@ -18,8 +18,9 @@ RUN uv sync --no-dev
# Copy the application.
COPY . .
RUN chmod +x entrypoint.sh
EXPOSE 8000
# Default: run the API server. docker-compose overrides this to also seed.
CMD ["uv", "run", "uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
# Seeds perms/roles/superuser (idempotent, no-op if already present), then runs the API server.
ENTRYPOINT ["./entrypoint.sh"]