-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (20 loc) · 875 Bytes
/
Copy pathDockerfile
File metadata and controls
30 lines (20 loc) · 875 Bytes
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
FROM openjdk:8u131-jdk
LABEL maintainer="Atomist <docker@atomist.com>"
# Update aptitude with new repo and install git
RUN apt-get clean && apt-get update && apt-get install -y \
curl \
dnsutils \
openssl \
jq \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
ENV DUMB_INIT_VERSION=1.2.2
RUN curl -s -f -L -O https://github.com/Yelp/dumb-init/releases/download/v$DUMB_INIT_VERSION/dumb-init_${DUMB_INIT_VERSION}_amd64.deb \
&& dpkg -i dumb-init_${DUMB_INIT_VERSION}_amd64.deb \
&& rm -f dumb-init_${DUMB_INIT_VERSION}_amd64.deb
RUN mkdir -p /opt/app
WORKDIR /opt/app
ENTRYPOINT ["dumb-init", "java", "-XX:+UnlockExperimentalVMOptions", "-XX:+UseCGroupMemoryLimitForHeap", "-Djava.net.preferIPv4Stack=true", "-Djava.security.egd=file:/dev/urandom"]
CMD ["-Xmx2048m", "-jar", "/opt/app/app.jar"]
EXPOSE 8080
COPY target/rolar.jar /opt/app/app.jar