Skip to content

Instantly share code, notes, and snippets.

@dmouse
Last active June 18, 2016 04:13
Show Gist options
  • Save dmouse/11351410 to your computer and use it in GitHub Desktop.
Save dmouse/11351410 to your computer and use it in GitHub Desktop.
This is a Dockerfile for build a image with scala and play framework
# Docker image with scala and play framework
FROM centos
MAINTAINER David Flores "[email protected]"
RUN yum update -y
RUN yum install java-1.7.0-openjdk.x86_64 -y
RUN /bin/rpm -ivh http://downloads.typesafe.com/scala/2.11.0/scala-2.11.0.rpm
RUN yum install wget unzip -y >/dev/null
RUN cd /opt && wget http://downloads.typesafe.com/play/2.2.3/play-2.2.3.zip && unzip play-2.2.3.zip
RUN ln -s /opt/play-2.2.3/play /usr/local/bin/
# clone this file in your /path/to/Dockerfile
# cd /path/to/Dockerfile
# docker build -t scala .
# docker run -i -t scala /bin/bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment