Docker image which provides a typesafe activator 1.3.2, designed to launch play applications (v2.3+).
- Activator: 1.3.2
- Play version: 2.3.8
- Java: Oracle-jdk-8u45
- OS: CentOS-7
Run your app
Your play app has to be mounted in the container in the
/app directory. Should you want to publish your app port to the host, you must use the -p argument.
Here is an example of a docker run command:
docker run -d \ -v /path/to/your/play/app:/app:rw \ -p 80:9000 \ ingensi/play-framework
In some cases, you'll need to run play with the current user:
docker run -d \ -v /path/to/your/play/app:/app:rw \ -p 80:9000 \ -u $(id -u) ingensi/play-framework
You can also package your app, in order to do that, create a
Dockerfile like it:
FROM ingensi/play-framework:latest MAINTERNER <firstname.lastname@example.org> ADD /path/to/my/play-src /app
This docker image inherits from the ingeni/oracle-jdk image. It includes an oracle jdk install in its latest version.