Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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)
- Host: GitHub
- URL: https://github.com/docker-hub-frolvlad/docker-alpine-openjdk7
- Owner: Docker-Hub-frolvlad
- License: mit
- Created: 2015-04-14T12:25:03.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2021-07-11T14:43:54.000Z (over 3 years ago)
- Last Synced: 2024-09-30T13:05:28.442Z (about 1 month ago)
- Topics: alpine, docker-image, java, openjdk
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/frolvlad/alpine-openjdk7/
- Size: 5.86 KB
- Stars: 5
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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!