some deployments worked out

This commit is contained in:
2025-10-03 18:02:40 -04:00
parent 0acfd16d96
commit fdc2349de1
26 changed files with 286 additions and 141 deletions

View File

@@ -1,4 +1,4 @@
FROM python:3
FROM docker.io/python:3-slim
WORKDIR /app
COPY requirements.txt requirements.txt
@@ -7,7 +7,4 @@ COPY . .
EXPOSE 80
HEALTHCHECK --interval=10s --timeout=5s --retries=3 --start-period=10s \
CMD python healthcheck.py http://localhost/api/ || exit 1
CMD ["fastapi", "run", "main.py", "--port", "80", "--proxy-headers"]

View File

@@ -23,7 +23,7 @@ def get_prefix_ticket_one(api_key: str, prefix: str, t_id: int) -> Ticket:
raise bad_key
return TicketRepo().get_prefix_one(prefix, t_id)
@ticket_router.get("/{prefix}/{t_from}/{t_to}")
@ticket_router.get("/{prefix}/{t_from}/{t_to}/")
def get_prefix_ticket_range(api_key: str, prefix: str, t_from: int, t_to: int) -> list[Ticket]:
if not ApiKeyRepo().check_api(api_key):
raise bad_key