Low profile java image on alpine linux, JRE headless
264
Minimal java image with low footprint alpine linux base.
Includes only JRE-Headless package to further reduce the size, as most docker containers use api model so normal JRE (with GUI support) is an overhead.
Image tags are of format java:JRE_VERSION
Pull the image from dockerhub
docker pull vsaps/java:21
Copy the required jars/java classes to the image and execute with java
e.g. Dockerfile
FROM vsaps/java:21
RUN mkdir /app
WORKDIR /app
COPY target/my-jar.jar .
#EXPOSE 8080
ENTRYPOINT ["java", "-jar", "my-jar.jar" ]
Content type
Image
Digest
sha256:503cc83a8…
Size
67.5 MB
Last updated
almost 2 years ago
docker pull redblackcs/java:latest-21