jinql
2 years ago
1 changed files with 15 additions and 0 deletions
@ -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…
Reference in new issue