Last active
January 3, 2019 12:45
-
-
Save eduardomp/9c46b6852217eb0d000d0594137ce70b to your computer and use it in GitHub Desktop.
Dockerfile for play 2.6.X applications
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:18.04 | |
LABEL maintainer="Eduardo Medeiros Pereira - edu.medeirospereira@gmail.com" | |
LABEL description="Dockerfile for Play Framework 2.6.X applications" | |
WORKDIR /usr/src/app | |
COPY . . | |
ADD https://piccolo.link/sbt-1.2.8.zip /usr/src/app | |
RUN apt-get update && \ | |
apt-get install -y openjdk-8-jdk unzip && \ | |
unzip sbt-1.2.8.zip && \ | |
rm -rf sbt-1.2.8.zip && \ | |
echo 'pidfile.path = "/dev/null"' >> /usr/src/app/conf/application.conf | |
ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64 | |
ENV SBT_PATH /usr/lib/sbt | |
ENV PATH $PATH:$JAVA_HOME/bin:$SBT_PATH/bin | |
RUN sbt clean compile | |
EXPOSE 9000 | |
CMD ["sbt", "run 9000"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment