Public Repository

Last pushed: a year ago
Short Description
Play 2.3.9 container
Full Description

Play container running on oracce java 8 in ubuntu 14.04.

In Order to use play container:
Use following empty play app: https://github.com/tarunmittal/dockerized-play-app

OR
Dockerize your play app as follows:

add Dockerfile of your play app in folder called dist. Contents of Dockerfile will be as follows :

Copy the relevant parts of the new app build output from the play stage command into the container (target/universal/stage/)

COPY bin/<projectname> /app/bin/launch
COPY conf /app/conf

Note: the base container already has the 130+MB of play jar files installed in the /app/lib folder, only copy app specific jars

COPY lib /app/lib

Application launches with /app as current directory

WORKDIR /app

Expose http port

EXPOSE 9000

CMD ["/app/bin/launch"]

run following commands before doing a docker build.

rm -rf dist/bin/ dist/conf/ dist/lib/
activator clean compile stage
cp -r target/universal/stage/bin/ dist/
cp -r target/universal/stage/lib/ dist/
cp -r target/universal/stage/conf/ dist/

Docker Pull Command
Owner
tarunmittal

Comments (0)