Rewrote the Flask server into a FastAPI one that has Prometheus metrics and connects to a database

This commit is contained in:
2025-10-09 20:21:04 +02:00
parent 0d04a0f790
commit db70de7659
13 changed files with 294 additions and 124 deletions

11
Dockerfile Normal file
View File

@@ -0,0 +1,11 @@
FROM python:3.12-slim
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
WORKDIR /app
COPY src/ /app/
ENTRYPOINT ["python","main.py"]