Sign inSign up

frolvlad/alpine-openjdk7

By frolvlad

Updated about 5 years ago

The smallest Docker image with OpenJDK7 (144MB)

Image
11

10K+

frolvlad/alpine-openjdk7 repository overview

Docker Stars Docker Pulls

OpenJDK 7 Docker image

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

Download size of this image is only:

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-openjdk7 sh -c '/usr/lib/jvm/default-jvm/bin/javac Main.java && java Main'

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

Tag summary

Content type

Image

Digest

sha256:b14477a77

Size

79.4 MB

Last updated

about 5 years ago

docker pull frolvlad/alpine-openjdk7