The official distroless-cc 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 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
| Tag | Currently | Architectures |
|---|---|---|
| 12.3.1-oe2403lts | libstdc++ and libgcc 12.3.1 on openEuler 24.03-LTS | amd64, arm64 |
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"]
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:f7a19b554…
Size
12 MB
Last updated
3 days ago
docker pull openeuler/distroless-cc:12.3.1-oe2403ltsPulls:
11
Last week