Public Repository

Last pushed: 2 years ago
Short Description
Ubuntu 14.04 official + oracle java 8 (1.8.0_25) as tar.gz file from oracle site ...
Full Description

Base Image

Ubuntu 14.04 official + oracle java 8 (1.8.0_25) as tar.gz file from oracle site ...

Dockerfile

# Oracle Java8 dockerfile
FROM ubuntu:14.04
MAINTAINER olagache <olagache@gmail.com>

RUN apt-get update && apt-get upgrade -y

RUN mkdir -p /usr/lib/jvm
COPY jdk-8u25-linux-x64.tar.gz /usr/lib/jvm/
WORKDIR /usr/lib/jvm/ 
RUN tar -xvzf jdk-8u25-linux-x64.tar.gz
RUN ln -s jdk1.8.0_25 java-8-oracle-amd64
RUN \
    rm java-8-oracle-amd64/javafx-src.zip && \
    rm java-8-oracle-amd64/src.zip && \
    rm jdk-8u25-linux-x64.tar.gz
RUN chown -R root:root jdk1.8.0_25/

ENV JAVA_HOME /usr/lib/jvm/java-8-oracle-amd64

Build

Command line as root

$ sudo docker build --tag="olagache/java-8-oracle:1.8.0_25 PATH_TO_DOCKERFILE
$ sudo docker tag IMAGE_ID olagache/java-8-oracle:latest
$ sudo docker push olagache/java-8-oracle

Next Step

Automated Builds on Docker Hub

Docker Pull Command
Owner
olagache