Sign inSign up

hambn/core

By hambn

•Updated 17 days ago

Hardened alpine application base: CA certificates, tzdata, curl, bash, and a nonroot user

Image
0

2.4K

hambn/core repository overview

⁠core

Minimal base images on Wolfi⁠, Alpine⁠, and Ubuntu⁠ for building applications that run as an unprivileged user. Each holds CA certificates, tzdata, curl, bash, and a nonroot user, and nothing else. core is also the base of devbox⁠.

⁠Contents

⁠Images

  • wolfi: Wolfi, a glibc distribution built for containers. docker build builds this variant by default.
    • Base: chainguard/wolfi-base
    • Tags: wolfi
  • alpine: Alpine 3.24.
    • Base: alpine:3.24
    • Tags: alpine
  • ubuntu: Ubuntu 24.04, for software that needs glibc and apt. latest points here.
    • Base: ubuntu:24.04
    • Tags: ubuntu, latest

Pull ghcr.io/hambn/core:<tag> or docker.io/hambn/core:<tag>. All tags move when the image is rebuilt; pin a digest to keep one build. The Dockerfile⁠ pins each upstream base by digest and holds the date that forces an OS package refresh.

⁠Hardening

  • Runs as nonroot (UID and GID 65532) in /home/nonroot. The default command is bash.
  • Has no sudo, and the build clears every setuid and setgid bit.
  • Removes documentation, man pages, and package caches. The package manager stays, so a derived image can install packages as USER root.
  • On Ubuntu, removes the stock ubuntu account (UID 1000).

⁠Use cases

  • Throwaway shell or base for your own image with Docker⁠: run curl and bash in a disposable container, or build FROM ghcr.io/hambn/core:wolfi.
  • Locked-down read-only shell service with Docker Compose⁠.

⁠Sources

Tag summary

Content type

Image

Digest

sha256:93412ae0f…

Size

34.5 MB

Last updated

17 days ago

docker pull hambn/core