Adding entrypoint to seed database
This commit is contained in:
1 parent
aca15db9bf
commit
b6dc6dd6b8
4 files changed
+12
-7
No files matched your search
+3
-2
@@ -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"]
|
||||
Reference in new issue
Block a user