-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
34 lines (22 loc) · 873 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM java:7
EXPOSE 9000
# Based on https://hub.docker.com/r/ifinavet/playframework/
# Install Play version
ENV PLAY_VERSION 2.2.1
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/
# Choose a work directory
WORKDIR /app
# Copy project/ which holds your project definitions
COPY project project
# Trigger dependency download
RUN play help
# Copy your entire project
COPY ./ ./
COPY docker/application.conf ./conf/application.conf
RUN play -Dsbt.log.noformat=true clean compile test stage
ENV JAVA_OPTS -Xms250m -Xmx3000m -XX:MaxPermSize=750m -XX:ReservedCodeCacheSize=375m -XX:+CMSClassUnloadingEnabled -Dfile.encoding=UTF-8 -Dpidfile.path=/dev/null
# Your start command
CMD play start