Files
seat-back-trivia/pricing/Dockerfile
T
Cedric PollefeysandClaude Opus 5.5 88ae7f9158
seat-back-trivia/pipeline/head This commit looks good
Add pricing v1, locked dependencies, and Ansible deployment files
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 13:48:45 -05:00

12 lines
600 B
Docker

FROM python:3.13-slim@sha256:ae14d4ce8771606477a81446e7ef429edd6762305fc50c84507c1041fa8285d1
ARG APP_COMMIT=development
ENV APP_COMMIT=$APP_COMMIT PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY app.py .
USER 10001:10001
EXPOSE 8000
HEALTHCHECK --interval=10s --timeout=3s --start-period=10s --retries=3 CMD python -c "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8000/health', timeout=2)"
CMD ["gunicorn", "--bind", "0.0.0.0:8000", "--workers", "1", "--worker-tmp-dir", "/tmp", "app:app"]