Public Repository

Last pushed: 3 years ago
Short Description
Minimal Docker image with a Alpine Linux and Java
Full Description

This repository contains Docker images with Java 7 and 8 in a minimal Linux container. The images are based on Alpine Linux. See the 'tags' tab for available versions of Java.

Images and their sizes

  • Oracle Java 7 (jre): dervism/dockerjava:jre7 (109 mb)
  • Oracle Java 8 (jre): dervism/dockerjava:jre8 (129 mb)
  • OpenJDK Java 7 (jre): dervism/dockerjava:openjdk7 (119 mb)
  • OpenJDK Java 8 (jre): dervism/dockerjava:openjdk8 (126 mb)

How to run the images

docker run -t -i dervism/dockerjava:openjdk7 java -version

Extending the images

When modifing images, make sure to check Alpine Linux package site if the software you need is supported. If you can find it there, just add it to the "apk add" section in the Dockerfile as shown in this example:

FROM alpine:latest
RUN apk add --update \
    openjdk7-jre-base \
    wget \
    bash  && \
    rm -rf /var/cache/apk/*
Docker Pull Command