nategodd/Dockerfile
type-two 77a522a16f Production hardening + container for public hosting
- Request body cap (16KB), search query cap, input range validation
  (year 1800-2399, date/time fields, lat/lon bounds)
- Dockerfile (gunicorn, 2 workers) + compose binding 127.0.0.1:7799
  for cloudflared-fronted deployment

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-09-14 15:02:56 +10:00

9 lines
328 B
Docker

FROM python:3.12-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt gunicorn==23.0.0
COPY . .
EXPOSE 7799
# 2 workers is plenty: chart computation is a few ms; timezonefinder/geonames load per worker
CMD ["gunicorn", "-w", "2", "-b", "0.0.0.0:7799", "--access-logfile", "-", "app:app"]