Sign inSign up

teogisis/wolfpack-java

By teogisis

โ€ขUpdated about 14 hours ago

๐Ÿบ Hardened Wolfi/apko Java images โ€” no shell/JDK in production, daily rebuilds.

Image
Security
0

363

teogisis/wolfpack-java repository overview

โ wolfpack-java

Hardened, minimal Java container images built on Wolfiโ  with apkoโ  โ€” no distro, no shell, no JDK 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โ .

โ Tags

Two variants per Java version โ€” 17, 21:

TagContainsUse for
<version>JRE + CA certs only. No shell, no JDK.Production runtime
<version>-devFull JDK, plus maven and busybox (shell).Builder stage โ€” compiling and packaging

Each tag is overwritten with the newest build; there is no latest tag (pick a version explicitly).

โ Usage

Since the production image has no shell or JDK, compile in a -dev builder stage and copy the built artifact into the hardened final image:

# ---- Builder: has JDK + maven + shell ----
FROM teogisis/wolfpack-java:21-dev AS builder
WORKDIR /app
COPY pom.xml .
COPY src ./src
RUN mvn -B package -DskipTests

# ---- Final: hardened, no JDK, no shell ----
FROM teogisis/wolfpack-java:21
WORKDIR /app
COPY --from=builder /app/target/app.jar app.jar
ENTRYPOINT ["/usr/bin/java", "-jar", "app.jar"]

Runs as a non-root user (uid/gid 65532) by default. JAVA_HOME is set in both variants.

โ Also in this family

wolfpack-pythonโ  ยท wolfpack-nodeโ  ยท wolfpack-dotnetโ 

โ Source

Build configs, CI pipeline, and up-to-date vulnerability scan results: github.com/Theo-Gkisis/wolfpackโ 

Tag summary

Content type

Image

Digest

sha256:13fcec2adโ€ฆ

Size

96 MB

Last updated

about 14 hours ago

docker pull teogisis/wolfpack-java:17-dev