diff --git a/docker-compose.yml b/docker-compose.yml index 26012dbcc..96ad3a891 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -9,7 +9,9 @@ services: expose: - 6379 play: - image: alexproca/play:2.2.3 + build: + context: . + dockerfile: play.dockerfile volumes: - .:/app:rw ports: diff --git a/play.dockerfile b/play.dockerfile new file mode 100644 index 000000000..96541fa42 --- /dev/null +++ b/play.dockerfile @@ -0,0 +1,8 @@ +FROM openjdk:8 + +ENV PLAY_VERSION 2.2.6 + +RUN wget -q https://downloads.typesafe.com/play/${PLAY_VERSION}/play-${PLAY_VERSION}.zip \ + && unzip -q play-${PLAY_VERSION}.zip \ + && rm play-${PLAY_VERSION}.zip \ + && ln -s /play-${PLAY_VERSION}/play /usr/local/bin/