Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/docker-hub-frolvlad/docker-alpine-openjdk7

The smallest Docker image with OpenJDK 7 (144MB)
https://github.com/docker-hub-frolvlad/docker-alpine-openjdk7

alpine docker-image java openjdk

Last synced: 26 days ago
JSON representation

The smallest Docker image with OpenJDK 7 (144MB)

Awesome Lists containing this project

README

        

[![Docker Stars](https://img.shields.io/docker/stars/frolvlad/alpine-openjdk7.svg?style=flat-square)](https://hub.docker.com/r/frolvlad/alpine-openjdk7/)
[![Docker Pulls](https://img.shields.io/docker/pulls/frolvlad/alpine-openjdk7.svg?style=flat-square)](https://hub.docker.com/r/frolvlad/alpine-openjdk7/)

OpenJDK 7 Docker image
=======================

This image is based on Alpine Linux image, which is only a 5MB image, and contains
[OpenJDK 7](http://openjdk.java.net/).

Download size of this image is only:

[![](https://images.microbadger.com/badges/image/frolvlad/alpine-openjdk7.svg)](http://microbadger.com/images/frolvlad/alpine-openjdk7 "Get your own image badge on microbadger.com")

Usage Example
-------------

```bash
$ 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!