A Debian + Bazel build container for creating distroless-style images without pulling in extra Google project boilerplate.
The container runs as a non-root bazel user by default.
Use it in a multistage Dockerfile:
FROM docker.io/cartheur/debian-bazel:latest AS buildBuild:
podman build -t docker.io/cartheur/debian-bazel:latest .Run:
podman run --rm docker.io/cartheur/debian-bazel:latest bazel --versionPush:
podman login docker.io
podman push docker.io/cartheur/debian-bazel:latestWorkflow file: .github/workflows/publish.yml
Required repository secrets:
DOCKERHUB_USERNAME(for examplecartheur)DOCKERHUB_TOKEN(Docker Hub access token with push permissions)
The workflow publishes docker.io/cartheur/debian-bazel:latest on every push to main and on manual dispatch.
docker-ce-cli is not currently installed in this image. If you want remote daemon control (docker, docker compose, docker swarm) from inside this container, I can add that in a separate variant.