- Dockerfile 52.1%
- Shell 47.9%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
- Add `gh` staging dir (config.yml, hosts.yml -> ~/.config/gh) to sync-agent.sh - Document the stage block in the host-sync.sh example and staging-dirs list |
||
| .github/workflows | ||
| devcontainer | ||
| fastapi | ||
| mise | ||
| nuxt | ||
| README.md | ||
DCC Docker Images
Shared Docker tooling for DCC-BS apps. The goal is to keep the Docker logic in one place so apps don't duplicate it.
Layout
dcc-docker-images/
├── mise/ # PRE-BUILT base image (dcc-mise:13-slim) — build once, share
├── devcontainer/ # PRE-BUILT dev container image + devcontainer.json TEMPLATE for app repos
├── fastapi/ # TEMPLATE — copy into FastAPI/uv apps, build in the app repo
├── nuxt/ # TEMPLATE — copy into Nuxt/node apps, build in the app repo
└── README.md
How it works
Only the mise base image is pre-built and shared. The fastapi/nuxt
Dockerfiles are templates: they COPY app files, so they must be built
inside each app repo with the app as the build context.
The base image carries everything common:
- apt packages, mise env vars, and the mise binary
/usr/local/bin/assemble-runtime— a shared script that strips the mise-managed python/node + varlock into a minimal/runtime, dropping headers, Tcl/Tk, terminfo, npm/corepack, man pages, and pip/idle launchers.
Each app's Dockerfile is then thin: it only holds the app-specific steps
(COPY . ., build commands, entrypoint). The runtime-assembly logic lives in
exactly one place — the base image — instead of being copy-pasted into every app.
Build the base image
docker build -t ghcr.io/dcc-bs/dcc-docker-images/mise:13-slim ./mise
The base image is published to GHCR by the
.github/workflows/docker-publish.yml workflow (manual workflow_dispatch),
tagged 13-slim and latest.
Use a template in an app
- Copy the template into the app repo:
cp dcc-docker-images/fastapi/Dockerfile /path/to/app/Dockerfile - Build in the app repo (the app is the build context):
cd /path/to/app docker build -t my-app .
The python/node version is not hardcoded anywhere in the templates — it
comes from the app's own pyproject.toml (requires-python) or mise.toml.
Change it there and both build and runtime follow automatically.
Version pinning
The base image tag (13-slim) matches the Debian release. When you bump the
base image, rebuild it and re-tag so apps pick up the new assemble-runtime
script and toolchain.
Dev containers for app repos
devcontainer/ is the same idea applied to development environments: a
pre-built image (ghcr.io/dcc-bs/dcc-docker-images/devcontainer:24.04) plus a
canonical devcontainer.json template. See
devcontainer/README.md for what the image contains
and the adoption steps for a repo.
Publish
The .github/workflows/docker-publish.yml workflow builds and pushes the mise
base image to ghcr.io/dcc-bs/dcc-docker-images/mise and the dev container
image to ghcr.io/dcc-bs/dcc-docker-images/devcontainer on manual dispatch.
The fastapi/nuxt templates are not published — they are copied into each app
and built there.