The official distroless-static docker image.
Maintained by: openEuler CloudNative SIG.
Where to get help: openEuler CloudNative SIG, openEuler.
This image contains a minimal Linux, glibc runtime for "mostly-statically compiled" languages like Rust and Go.
Statically compiled applications (Go) that do not require libc can use the openeuler/distroless-static image, which contains:
The tag details are as follows
| Tag | Currently | Architectures |
|---|---|---|
| 1.0.0-oe2403lts | openEuler 24.03-LTS static image | amd64, arm64 |
Users are expected to include their compiled application and set the correct cmd in their image. For example
# Dockerfile
FROM openeuler/go:latest AS build
WORKDIR /go/src/app
COPY . .
RUN go mod download
RUN go vet -v
RUN go test -v
RUN CGO_ENABLED=0 go build -o /go/bin/app
FROM openeuler/distroless-static:1.0.0-oe2403lts
COPY --from=build /go/bin/app /
CMD ["/app"]
For implementation details, refer to the distroless-base-nonroot documentation.
If you have any questions or want to use some special features, please submit an issue or a pull request on openeuler-docker-images.
Content type
Image
Digest
sha256:53a52e87a…
Size
11.1 MB
Last updated
about 1 month ago
docker pull openeuler/distroless-static:1.0.0-oe2403ltsPulls:
17
Last week