Files
hnsdoh-status/Dockerfile
Nathan Woodburn 6aaed517f6
All checks were successful
Build Docker / BuildImage (push) Successful in 3m56s
feat: Update reqs and add Dockerfile
2026-04-04 16:30:33 +11:00

21 lines
469 B
Docker

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"]