-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.template
23 lines (23 loc) · 1.24 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
FROM ubirch/java:latest
ARG GO_PIPELINE_NAME=manual
ARG GO_REVISION_GIT=manual
ARG GO_PIPELINE_LABEL=manual
ARG GO_PIPELINE_COUNTER=manual
ARG GO_STAGE_COUNTER=manual
LABEL GO_PIPELINE_NAME=${GO_PIPELINE_NAME}
LABEL GO_REVISION_GIT=${GO_REVISION_GIT}
LABEL GO_PIPELINE_LABEL=${GO_PIPELINE_LABEL}
LABEL GO_PIPELINE_COUNTER=${GO_PIPELINE_COUNTER}
LABEL GO_STAGE_COUNTER=${GO_STAGE_COUNTER}
ENV GO_PIPELINE_NAME=${GO_PIPELINE_NAME}
ENV GO_REVISION_GIT=${GO_REVISION_GIT}
ENV GO_PIPELINE_LABEL=${GO_PIPELINE_LABEL}
ENV GO_PIPELINE_COUNTER=${GO_PIPELINE_COUNTER}
ENV GO_STAGE_COUNTER=${GO_STAGE_COUNTER}
LABEL description="ubirch Chain Service container"
RUN mkdir -p /opt/ubirch/etc
ADD @@SOURCE@@ /opt/jar/@@TARGET@@
ADD config/src/main/resources/application.docker.conf /opt/ubirch/etc/application.conf
ADD config/src/main/resources/logback.docker.xml /opt/ubirch/etc/logback.xml
EXPOSE 8080
ENTRYPOINT ["java","-Dlogback.configurationFile=/opt/ubirch/etc/logback.xml", "-Dconfig.file=/opt/ubirch/etc/application.conf","-jar", "/opt/jar/@@TARGET@@","-Dfile.encoding=UTF-8", "-XX:+UseCMSInitiatingOccupancyOnly","-XX:+DisableExplicitGC","-XX:CMSInitiatingOccupancyFraction=75", "-XX:+UseParNewGC","-XX:+UseConcMarkSweepGC", "-Xms1g", "-Xmx2g", "-Djava.awt.headless=true"]