Public Repository

Last pushed: 2 years ago
Short Description
docker play file
Full Description

FROM ubuntu

MAINTAINER aayushahuja@gmail.com

RUN apt-get update -y

Install Java 1.7

RUN apt-get install openjdk-7-jdk -y

ENV PROJECT_WORKPLACE /usr/src/

RUN mkdir -p $PROJECT_WORKPLACE/activator $PROJECT_WORKPLACE/build $PROJECT_WORKPLACE/app

WORKDIR $PROJECT_WORKPLACE/activator

Fetch Activator for Play

RUN apt-get install wget -y

RUN apt-get install unzip -y

RUN wget http://downloads.typesafe.com/typesafe-activator/1.3.2/typesafe-activator-1.3.2.zip && \
unzip typesafe-activator-1.3.2.zip

ENV PATH $PROJECT_WORKPLACE/activator/activator-1.3.2:$PATH

Copy Files to Docker Container

COPY . $PROJECT_WORKPLACE/build

WORKDIR $PROJECT_WORKPLACE/build

RUN activator clean stage

RUN cp -R $PROJECT_WORKPLACE/build/target/universal/stage $PROJECT_WORKPLACE/app

EXPOSE 9000

This Runs with docker run

CMD $PROJECT_WORKPLACE/app/stage/bin/docker-play -Dhttp.port=9000 -Dlogger.file=$PROJECT_WORKPLACE/build/logger.xml

Docker Pull Command
Owner
sivasakthi

Comments (0)