containers

Pyvorin Dockerfile Template

Copy-paste ready Dockerfile for Pyvorin apps.

Published May 30, 2026

FROM python:3.12-slim

WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

COPY . .
RUN pyvorin compile app.py --function main --opt-level 3

EXPOSE 8000
CMD ["python", "app.py"]

Notes

  • Set PYVORIN_LICENSE_KEY as build arg
  • Copy cache to final image
  • Use .dockerignore to exclude tests