-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathDockerfile
More file actions
40 lines (30 loc) · 1.55 KB
/
Copy pathDockerfile
File metadata and controls
40 lines (30 loc) · 1.55 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
39
# Pull base image
FROM openjdk:8-jre
MAINTAINER Kaazing Docker Maintainers, contact via github issues: https://github.com/kaazing/gateway.docker/issues
# pub 2048R/385B4D59 2015-07-01 [expires: 2017-12-08]
# Key fingerprint = F8F4 B66E 022A 4668 E532 DAC0 3AA0 B82C 385B 4D59
# uid Kaazing build <build@kaazing.com>
# sub 2048R/26C0219B 2015-07-01 [expires: 2017-12-08]
RUN gpg --keyserver ha.pool.sks-keyservers.net --recv-keys F8F4B66E022A4668E532DAC03AA0B82C385B4D59
ENV KAAZING_GATEWAY_VERSION 5.1.1
ENV KAAZING_GATEWAY_URL https://oss.sonatype.org/content/repositories/releases/org/kaazing/gateway.distribution/${KAAZING_GATEWAY_VERSION}/gateway.distribution-${KAAZING_GATEWAY_VERSION}.tar.gz
# Set Working Dir
WORKDIR /kaazing-gateway
# Get the latest stable version of gateway
RUN curl -fSL -o gateway.tar.gz $KAAZING_GATEWAY_URL \
&& curl -fSL -o gateway.tar.gz.asc ${KAAZING_GATEWAY_URL}.asc \
&& gpg --verify gateway.tar.gz.asc \
&& tar -xvf gateway.tar.gz --strip-components=1 \
&& rm gateway.tar.gz*
# By default, Java uses /dev/random to gather entropy data for cryptographic
# needs. However, using /dev/random can cause delays during Gateway startup,
# especially in virtualized environments. /dev/urandom does not require
# collection of entropy data in subsequent runs.
# See: https://github.com/kaazing/gateway/issues/167
ENV GATEWAY_OPTS="-Xmx512m -Djava.security.egd=file:/dev/urandom"
# add new files to the path
ENV PATH=$PATH:/kaazing-gateway/bin
# Expose Ports
EXPOSE 8000
# Define default command
CMD ["gateway.start"]