mirror of
https://github.com/azaion/loader.git
synced 2026-04-22 22:16:32 +00:00
8f7deb3fca
Made-with: Cursor
1.3 KiB
1.3 KiB
Containerization
Dockerfile Summary
Base image: python:3.11-slim
Build steps:
- Install system deps:
python3-dev,gcc,pciutils,curl,gnupg - Install Docker CE CLI (from official Docker apt repo)
- Install Python deps from
requirements.txt - Copy source code
- Compile Cython extensions:
python setup.py build_ext --inplace
Runtime: uvicorn main:app --host 0.0.0.0 --port 8080
Exposed port: 8080
Key Design Decisions
- Docker CLI is installed inside the container because the unlock workflow needs
docker loadanddocker image inspect - Cython compilation happens at build time — the
.sofiles are generated duringdocker build pciutilsis installed forlspci(GPU detection inhardware_service)
Required Volume Mounts
| Mount | Purpose |
|---|---|
/var/run/docker.sock (host socket) |
Docker-in-Docker for image loading |
/opt/azaion/images.enc |
Encrypted Docker image archive |
Image Tags
Tags follow the pattern from Woodpecker CI:
mainbranch →loader:arm- Other branches →
loader:{branch}-arm - Registry:
localhost:5000