Pyvorin Dockerfile Template
May 30, 2026 | 5 min read
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