HUB
Sign inSign up
distroless-cc logo

openeuler/distroless-cc

Sponsored OSS

By openeuler

•Updated 1 day ago

Image
0

2.4K

openeuler/distroless-cc repository overview

⁠Quick reference

⁠distroless-cc | openEuler

This image contains a minimal Linux, glibc runtime for "mostly-statically compiled" languages like Rust and C/C++.

Specifically, the image contains everything in the openeuler/distroless-base image, plus:

  • libstdc++

    and its dependency:

  • libgcc

The tag of each distroless-cc docker image is consist of the version of libstdc++ and version of openEuler. The details are as follows

TagCurrentlyArchitectures
12.3.1-oe2403lts⁠libstdc++ and libgcc 12.3.1 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 g++ hello.cc -o hello

FROM openeuler/distroless-cc:12.3.1-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
Recent tags
Content type
Image
Digest
sha256:73b071448…
Size
12 MB
Last updated
1 day ago
docker pull openeuler/distroless-cc:12.3.1-oe2403lts
This week's pulls