Guide 12 · any Dockerfile
Ship your own toolchain with custom images
When the 16 templates aren't enough — private deps, system packages, pinned toolchains — build a custom image from any Dockerfile and launch sandboxes from it like any template.
1
Write a normal Dockerfile
# ./my-env/Dockerfile
FROM python:3.11-slim
RUN apt-get update && apt-get install -y ffmpeg tesseract-ocr
COPY requirements.txt .
RUN pip install -r requirements.txt
2
Build it into the platform
$ pilldrops image build ./my-env -t video-tools ✓ built image "video-tools" $ curl $BASE/v1/images -H "Authorization: Bearer $KEY" # it's listed
3
Launch sandboxes from it
$ pilldrops sandbox create --image video-tools --vcpu 2 --mem 4096 # or in the API/SDK: {"image": "video-tools", …}