Public Repository

Last pushed: 2 months ago
Short Description
Minimal Alpine Linux image with Oracle Java
Full Description

Minimal Docker image with Oracle Java

Basic Docker image to run Java applications.
This is based on Alpine Linux to keep the size minimal (about 25% of an ubuntu-based image).

You must accept the Oracle Binary Code License Agreement for Java SE to use this image.

Tags and associated Dockerfiles

Additionally, tags are created for each oracle release (e.g. 8u141, jdk-8u141 or jre-8u141).



docker run -it --rm jeanblanchard/java:8 java -version
Docker Pull Command

Comments (6)
2 years ago


You could create your own image based off of this one. Something like:

FROM jeanblanchard/java

RUN apk upgrade --update && \
    apk add bash

Then a:

docker build .
2 years ago

How could I use this with gradle Application plugin? It needs bash to run :(

2 years ago

@bimargulies I guess the Dockfile is in this repo:

2 years ago

Could we see the Dockerfile? I would like to try to add substrate for some native code of mine and I don't know much about alpine, so I was hoping to learn from you.

2 years ago

Any plans to rebuild 8u51 to a smaller image?

2 years ago

Nice and much needed work ;)