Sign inSign up

openeuler/distroless-static

Sponsored OSS

By openeuler

•Updated about 1 month ago

Image
0

2.2K

openeuler/distroless-static repository overview

⁠Quick reference

⁠distroless-static | 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:

  • ca-certificates
  • tzdata

The tag details are as follows

TagCurrentlyArchitectures
1.0.0-oe2403lts⁠openEuler 24.03-LTS static imageamd64, arm64

⁠Usage

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"]

⁠Run Applications as a Non-Root User

For implementation details, refer to the distroless-base-nonroot documentation⁠.

⁠Question and answering

If you have any questions or want to use some special features, please submit an issue or a pull request on openeuler-docker-images⁠.

Tag summary

Content type

Image

Digest

sha256:53a52e87a…

Size

11.1 MB

Last updated

about 1 month ago

docker pull openeuler/distroless-static:1.0.0-oe2403lts

This week's pulls

Pulls:

17

Last week