forked from is00hcw/bitnami-docker-java-play
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
38 lines (27 loc) · 1.22 KB
/
Dockerfile
File metadata and controls
38 lines (27 loc) · 1.22 KB
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
35
36
37
38
## BUILDING
## (from project root directory)
## $ docker build -t bitnami/bitnami-docker-javaplay .
##
## RUNNING
## $ docker run -p 9000:9000 bitnami/bitnaxmi-docker-javaplay
##
FROM gcr.io/stacksmith-images/minideb-buildpack:jessie-r8
MAINTAINER Bitnami <containers@bitnami.com>
ENV BITNAMI_APP_NAME=java-play \
BITNAMI_IMAGE_VERSION=1.3.10-r6 \
PATH=/opt/bitnami/activator/bin:/opt/bitnami/node/bin:$PATH \
TERM=xterm
# Install related packages
RUN echo "deb http://http.debian.net/debian jessie-backports main" >> /etc/apt/sources.list && apt-get update && \
apt-get install -y --no-install-recommends ca-certificates-java/jessie-backports openjdk-8-jdk-headless openjdk-8-jdk && \
apt-get clean && \
rm -rf /var/lib/apt /var/cache/apt/archives/*
# Install Play dependencies
RUN bitnami-pkg install node-6.6.0-1 --checksum 36f42bb71b35f95db3bb21d088fbd9438132fb2a7fb4d73b5951732db9a6771e
# Install Java/Play (Activator) module
RUN bitnami-pkg install activator-1.3.10-4 --checksum 77fa565ff8d55cd9b21dc66405a4f4e9a089bd8fe231a61dd4ac9d0dcad0f3ac
COPY rootfs/ /
WORKDIR /app
EXPOSE 9000
ENTRYPOINT ["/app-entrypoint.sh"]
CMD ["activator", "-Doffline=true", "-Dhttp.address=0.0.0.0 -Dhttp.port=9000", "~run"]