feat: Update reqs and add Dockerfile
All checks were successful
Build Docker / BuildImage (push) Successful in 3m56s

This commit is contained in:
2026-04-04 16:30:33 +11:00
parent f680eb9492
commit 6aaed517f6
3 changed files with 226 additions and 176 deletions

20
Dockerfile Normal file
View File

@@ -0,0 +1,20 @@
FROM python:3.13-slim
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1
WORKDIR /app
RUN useradd --create-home --home-dir /home/appuser --shell /bin/bash appuser
COPY requirements.txt ./
RUN pip install --no-cache-dir --upgrade pip \
&& pip install --no-cache-dir -r requirements.txt
COPY --chown=appuser:appuser . .
USER appuser
EXPOSE 5000
CMD ["gunicorn", "--bind", "0.0.0.0:5000", "--workers", "2", "--threads", "4", "--timeout", "60", "main:app"]