guides
Docker and Containers
Run Pyvorin inside Docker, Kubernetes, and containerised environments.
Published May 30, 2026
Dockerfile Example
FROM python:3.12-slim
RUN pip install pyvorin-thin \
--extra-index-url https://pypi.pyvorin.com/simple
WORKDIR /app
COPY . /app
ENV PYVORIN_THIN_API_BASE_URL=https://api.pyvorin.com
ENV PYVORIN_THIN_LICENSE_KEY=${PYVORIN_LICENSE_KEY}
CMD ["pyvorin", "run", "main.py"]
Build Args
docker build --build-arg PYVORIN_LICENSE_KEY=$PYVORIN_LICENSE_KEY -t myapp .
Kubernetes
apiVersion: v1
kind: Secret
metadata:
name: pyvorin-license
stringData:
key: PYV-XXXX-XXXX-XXXX
Volume Mounts
Mount the cache directory as a persistent volume to avoid re-downloading artifacts:
docker run -v pyvorin-cache:/root/.pyvorin/cache myapp