Add Docker and Traefik compose configuration.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
troogs
2026-07-18 17:46:38 +02:00
parent 785d0fa458
commit 8b8e3d5b52
2 changed files with 51 additions and 0 deletions

18
Dockerfile Normal file
View File

@@ -0,0 +1,18 @@
FROM python:3.12-alpine
RUN adduser -D -H app
WORKDIR /app
COPY app/requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY app/ .
USER app
ENV PORT=8080
EXPOSE 8080
HEALTHCHECK --interval=30s --timeout=5s --retries=3 \
CMD wget -qO- http://127.0.0.1:${PORT}/health || exit 1
CMD ["python", "main.py"]