Skip to content

Firecracker Python Net

Network-capable Python rootfs image used by the staff-side Firecracker deployment (firecracker-ctl-net). Built as a multi-stage Docker image whose final scratch layer carries a single /rootfs.ext4 artifact.

This image is not for the public sandbox quick-mode VMs. Those keep the no-network alpine-python rootfs from apps/vm/firecracker-ctl/rootfs/Dockerfile.alpine-python — sandboxing without internet egress is the safety property.

  • Alpine 3.21 + Python 3.12
  • py3-pip, py3-requests, py3-httpx, py3-urllib3, py3-certifi
  • ca-certificates-bundle, ca-certificates, iproute2
  • /etc/resolv.conf with 1.1.1.1 and 8.8.8.8
  • /init mounts /proc, /sys, /dev, brings up lo + eth0, then exec /entrypoint
ImageDeploymentNetworkDNSrequests baked
alpine-python (existing)firecracker-ctl (public quick)nonenono
firecracker-python-net (this)firecracker-ctl-net (staff persistent)TAP via Gluetun/WireGuardyesyes
Terminal window
npx nx run firecracker-python-net:container
npx nx run firecracker-python-net:extract

Output: packages/docker/firecracker/python/net/dist/python-net.ext4.

Terminal window
npx nx run firecracker-python-net:container:production

Pushes ghcr.io/kbve/firecracker-python-net:latest and :<version>.