Dockerfile 517 B

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