Dockerfile 753 B

123456789101112131415161718192021222324
  1. #FROM findepi/graalvm:java17-native
  2. FROM openjdk:17.0.2-oraclelinux8
  3. MAINTAINER Lion Li
  4. RUN mkdir -p /ruoyi/server/logs \
  5. /ruoyi/server/temp \
  6. /ruoyi/skywalking/agent
  7. WORKDIR /ruoyi/server
  8. ENV SERVER_PORT=8080 LANG=C.UTF-8 LC_ALL=C.UTF-8 JAVA_OPTS=""
  9. EXPOSE ${SERVER_PORT}
  10. ADD ./target/ruoyi-admin.jar ./app.jar
  11. ENTRYPOINT java -Djava.security.egd=file:/dev/./urandom -Dserver.port=${SERVER_PORT} \
  12. # 应用名称 如果想区分集群节点监控 改成不同的名称即可
  13. #-Dskywalking.agent.service_name=ruoyi-server \
  14. #-javaagent:/ruoyi/skywalking/agent/skywalking-agent.jar \
  15. -jar app.jar \
  16. -XX:+HeapDumpOnOutOfMemoryError -Xlog:gc*,:time,tags,level -XX:+UseZGC ${JAVA_OPTS}