上传文件至 'java/1.8'

master
jinql 2 years ago
parent bb2ef877d6
commit 899a4653e7

@ -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}
Loading…
Cancel
Save