From 899a4653e78478f639766b8dc26bdce57156a511 Mon Sep 17 00:00:00 2001 From: jinql Date: Fri, 12 May 2023 11:01:59 +0000 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=96=87=E4=BB=B6=E8=87=B3?= =?UTF-8?q?=20'java/1.8'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- java/1.8/Dockerfile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 java/1.8/Dockerfile diff --git a/java/1.8/Dockerfile b/java/1.8/Dockerfile new file mode 100644 index 0000000..abb1124 --- /dev/null +++ b/java/1.8/Dockerfile @@ -0,0 +1,15 @@ +FROM bitnami/java:1.8 + +ENV TZ=Asia/Shanghai \ + WORK_DIR='/home/rainier/vlab' \ + JAR_FILE='application.jar' \ + JAVA_OPTS='-server -Xms2048m -Xmx4096m -XX:NewSize=64m -XX:MaxNewSize=128m -XX:+UseParallelGC -Djava.awt.headless=true -Dfile.encoding=utf-8 -Djava.net.preferIPv4Stack=true -Dlog4j2.formatMsgNoLookups=true' + +RUN ln -sf /usr/share/zoneinfo/$TZ /etc/localtime \ + && echo $TZ > /etc/timezone \ + && mkdir -p $WORK_DIR + +WORKDIR $WORK_DIR +COPY dist . + +ENTRYPOINT java ${JAVA_OPTS} -jar ${JAR_FILE}