The official distroless-jre docker image.
Maintained by: openEuler CloudNative SIG.
Where to get help: openEuler CloudNative SIG, openEuler.
The Distroless JRE image is a minimal Java runtime environment designed to run Java applications in a secure and lightweight containerized environment.
It includes only what is necessary for executing Java programs and does not contain development tools such as javac.
Contents:
The tag of each distroless-jre docker image is consist of the version of OpenJDK and version of openEuler. The details are as follows
| Tag | Currently | Architectures |
|---|---|---|
| 21.0.2.12-oe2403lts | OpenJDK 21.0.2.12 on openEuler 24.03-LTS | amd64, arm64 |
.class file from the build stage and ets JAVA_HOME and adds the JVM bin directory to PATH for easy execution.FROM openeuler/openeuler:latest AS build-env
COPY . /app
WORKDIR /app
RUN yum install -y java-21-openjdk-devel
RUN javac Hello.java
FROM openeuler/distroless-jre:21.0.2.12-oe2403lts
COPY --from=build-env /app /app
WORKDIR /app
ENV JAVA_HOME=/usr/lib/jvm/java-21-openjdk-21.0.2.12-2.oe2403.aarch64
ENV PATH=$JAVA_HOME/bin:$PATH
CMD ["java", "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:9b7cadaac…
Size
60.8 MB
Last updated
about 1 month ago
docker pull openeuler/distroless-jre:21.0.2.12-oe2403ltsPulls:
18
Last week