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).

https://github.com/jeanblanchard/docker-java

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).

Usage

Example:

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

Comments (6)
jonjack
2 years ago

@fiunchinho

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 .
fiunchinho
2 years ago

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

xuhuihui
2 years ago

@bimargulies I guess the Dockfile is in this repo:
https://github.com/jeanblanchard/docker-java

bimargulies
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.

ryneo
2 years ago

Any plans to rebuild 8u51 to a smaller image?

chevdor
2 years ago

Nice and much needed work ;)