Sign inSign up

openeuler/distroless-base

Sponsored OSS

By openeuler

•Updated about 1 month ago

Image
0

2.4K

openeuler/distroless-base repository overview

⁠Quick reference

⁠distroless-base | openEuler

This image contains a minimal Linux, glibc-based system. It is intended for use directly by "mostly-statically compiled" languages like Go, Rust or D.

Statically compiled applications (Go) that do not require libc can use the openeuler/distroless-static image, which contains:

  • ca-certificates
  • tzdata

Most other applications (and Go apps that require libc/cgo) should start with openeuler/distroless-base, which contains all of the packages in openeuler/distroless-static, and

  • glibc
  • openssl_libs

The tag of each distroless-base docker image is consist of the version of glibc and version of openEuler. The details are as follows

TagCurrentlyArchitectures
2.38-oe2403lts⁠Glibc 4.1.4 on openEuler 24.03-LTSamd64, arm64

⁠Usage

Users are expected to include their compiled application and set the correct cmd in their image. For example⁠

# Dockerfile

FROM openeuler/openeuler:latest AS build-env
COPY . /app
WORKDIR /app
RUN yum install -y gcc g++
RUN cc hello.c -o hello

FROM openeuler/distroless-base:2.38-oe2403lts
COPY --from=build-env /app /app
WORKDIR /app
CMD ["./hello"]

⁠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:83dafa78e…

Size

11.1 MB

Last updated

about 1 month ago

docker pull openeuler/distroless-base:2.38-oe2403lts

This week's pulls

Pulls:

28

Last week