๐บ Hardened Wolfi/apko .NET images โ no shell/SDK in production, daily rebuilds.
126
Hardened, minimal .NET container images built on Wolfiโ with apkoโ โ no distro, no shell, no SDK in production.
Rebuilt daily from Wolfi's rolling-release package repo, so security patches land automatically. Every build is scanned with Trivyโ ; results and an auto-generated SBOM are tracked on GitHubโ .
Two variants per .NET version โ 8, 10 (LTS):
| Tag | Contains | Use for |
|---|---|---|
<version> | .NET runtime + CA certs only. No shell, no SDK. | Production runtime |
<version>-dev | Full SDK, plus busybox (shell). | Builder stage โ restoring and publishing |
Each tag is overwritten with the newest build; there is no latest tag (pick a version explicitly).
Since the production image has no shell or SDK, publish in a -dev builder stage and copy the output into the hardened final image:
# ---- Builder: has SDK + shell ----
FROM teogisis/wolfpack-dotnet:8-dev AS builder
WORKDIR /app
COPY . .
RUN dotnet publish -c Release -o /app/publish
# ---- Final: hardened, no SDK, no shell ----
FROM teogisis/wolfpack-dotnet:8
WORKDIR /app
COPY --from=builder /app/publish .
ENTRYPOINT ["/usr/bin/dotnet", "myapp.dll"]
Runs as a non-root user (uid/gid 65532) by default. DOTNET_RUNNING_IN_CONTAINER and ASPNETCORE_HTTP_PORTS are set in both variants.
wolfpack-pythonโ ยท wolfpack-nodeโ ยท wolfpack-javaโ
Build configs, CI pipeline, and up-to-date vulnerability scan results: github.com/Theo-Gkisis/wolfpackโ
Content type
Image
Digest
sha256:ca0ac2aa7โฆ
Size
262.7 MB
Last updated
about 17 hours ago
docker pull teogisis/wolfpack-dotnet:10-dev