-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile.template
34 lines (25 loc) · 1.1 KB
/
Dockerfile.template
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 anapsix/alpine-java:7_server-jre
MAINTAINER http://socialmetrix.com
RUN mkdir -p /app
RUN apk update && apk upgrade \
&& apk --no-cache add --virtual build-dependencies unzip \
&& apk --no-cache add curl python
ENV PLAY_VERSION __PLAY_VERSION__
RUN curl --location -s https://downloads.typesafe.com/play/$PLAY_VERSION/play-$PLAY_VERSION.zip > /tmp/play-$PLAY_VERSION.zip \
&& unzip -q /tmp/play-$PLAY_VERSION.zip -d /opt \
&& rm -rf /tmp/play-$PLAY_VERSION.zip \
/opt/play-$PLAY_VERSION/COPYING \
/opt/play-$PLAY_VERSION/documentation \
/opt/play-$PLAY_VERSION/framework/test-src \
/opt/play-$PLAY_VERSION/play.bat \
/opt/play-$PLAY_VERSION/python/*.dll \
/opt/play-$PLAY_VERSION/python/python.* \
/opt/play-$PLAY_VERSION/README.textile \
/opt/play-$PLAY_VERSION/samples-and-tests \
/opt/play-$PLAY_VERSION/support
RUN apk del --purge build-dependencies \
&& rm -fr /var/cache/apk/*
ENV PATH /opt/play-$PLAY_VERSION:$PATH
WORKDIR /app
EXPOSE 9000
CMD ["play", "version"]