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}