Skip to content

Low profile java image on alpine linux, JRE headless

License

Notifications You must be signed in to change notification settings

sapvs/java-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

push

Java Alpine Image - JRE Headless

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.

Using this image

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" ]

Source

java-docker

About

Low profile java image on alpine linux, JRE headless

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published