12345678 |
- FROM fabletang/jre8-alpine
- RUN echo "Asia/shanghai" > /etc/timezone;
- ADD backend-core.jar app.jar
- RUN bash -c 'touch /app.jar'
- #ENV JAVA_OPTS="-server -Xms128m -Xmx256m -verbose:gc -XX:+PrintGCDetails -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/oom.hprof -XX:+DisableExplicitGC -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled"
- ENTRYPOINT java -Xms128m -Xmx256m -Dfile.encoding=utf-8 -Duser.timezone=GMT+08 -jar /app.jar -Duser.timezone=GMT+08
- #ENTRYPOINT [ "sh", "-c", "java $JAVA_OPTS -jar /app.jar" ]
|