Public Repository

Last pushed: 2 years ago
Short Description
Ubuntu 14.04, Java8, scala2.11.2 & play framework
Full Description

FROM ubuntu:14.04

MAINTAINER Jun Suzuki

# Update apt-get sources AND install packages

RUN apt-get update
RUN apt-get install wget unzip aptitude dpkg debconf -yy
RUN aptitude install software-properties-common -yy

## Java

RUN sudo add-apt-repository -y ppa:webupd8team/java
&& sudo apt-get -y update
&& yes | sudo apt-get install oracle-java8-installer

## Scala

RUN wget http://downloads.typesafe.com/scala/2.11.2/scala-2.11.2.tgz -P /home/docker
&& tar zxvf /home/docker/scala-2.11.2.tgz -C /home/docker
&& sudo mv /home/docker/scala-2.11.2 /usr/local
&& ln -s /usr/local/scala-2.11.2 /usr/local/scala

## Play

RUN mkdir -p /home/docker/bin
&& wget http://downloads.typesafe.com/typesafe-activator/1.2.2/typesafe-activator-1.2.2.zip -P /home/docker
&& unzip /home/docker/typesafe-activator-1.2.2.zip -d /home/docker
&& ln -s /home/docker/activator-1.2.2/activator /home/docker/bin/activator

# Set Environment

ENV HOME /home

ENV PATH /bin:/usr/bin:/usr/local/scala/bin:/home/docker/bin/

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

ENV SCALA_HOME /usr/local/scala

# Timezone Setting

RUN echo "Asia/Tokyo" > /etc/timezone

RUN /usr/sbin/dpkg-reconfigure -f noninteractive tzdata

Docker Pull Command
Owner
junsuzuki

Comments (0)