-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
34 lines (25 loc) · 1.04 KB
/
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 socialmetrix/docker-alpine-jdk:jdk7
MAINTAINER http://socialmetrix.com
RUN mkdir -p /app
RUN apk upgrade \
&& apk --no-cache add curl unzip
# ENV PLAY_VERSION __PLAY_VERSION__
ARG 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 \
/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 \
/opt/play-${PLAY_VERSION}/support
RUN apk del --purge curl unzip \
&& rm -fr /var/cache/apk/*
ENV PATH /opt/play-${PLAY_VERSION}:$PATH
WORKDIR /app
# EXPOSE 9000
CMD ["play"]