Skip to content

mkoziel2000/docker-alpine-oraclejdk8

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

OracleJDK 8 Docker image

This image is based on Alpine Linux image, which is only a 5MB image, and contains OracleJDK 8.

JDK bundle contains lots of unnecessary for Docker image stuff, so it was cleaned up. There are 3 tags: full (only src tarballs get removed), cleaned (desktop parts get cleaned), slim (everything but compiler and jvm is removed). master branch refers to slim tag, but latest tag points to cleaned.

slim (master branch) image size is:

cleaned (latest tag) image size is:

full image size is:

Consider using develar/java image (~120MB) if you only need JRE (you can run java applications, but cannot build/compile them).

Usage Example

$ echo -e 'public class Main { public static void main(String[] args) { System.out.println("Hello World"); } }' > Main.java
$ docker run --rm -v `pwd`:/tmp --workdir /tmp frolvlad/alpine-oraclejdk8 sh -c 'javac Main.java && java Main'

Once you have run this command you will get printed 'Hello World' from Java!

About

Small Docker image with OracleJDK 8 (167MB)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published