Dockerfile 898 B

1234567891011121314151617181920212223242526
  1. # 贝尔实验室 Spring 官方推荐镜像 JDK下载地址 https://bell-sw.com/pages/downloads/
  2. FROM bellsoft/liberica-openjdk-debian:17.0.11-cds
  3. #FROM bellsoft/liberica-openjdk-debian:21.0.3-cds
  4. #FROM findepi/graalvm:java17-native
  5. LABEL maintainer="Lion Li"
  6. RUN mkdir -p /ruoyi/server/logs \
  7. /ruoyi/server/temp \
  8. /ruoyi/skywalking/agent
  9. WORKDIR /ruoyi/server
  10. ENV SERVER_PORT=8080 LANG=C.UTF-8 LC_ALL=C.UTF-8 JAVA_OPTS=""
  11. EXPOSE ${SERVER_PORT}
  12. ADD ./target/ruoyi-admin.jar ./app.jar
  13. ENTRYPOINT java -Djava.security.egd=file:/dev/./urandom -Dserver.port=${SERVER_PORT} \
  14. # 应用名称 如果想区分集群节点监控 改成不同的名称即可
  15. #-Dskywalking.agent.service_name=ruoyi-server \
  16. #-javaagent:/ruoyi/skywalking/agent/skywalking-agent.jar \
  17. -XX:+HeapDumpOnOutOfMemoryError -XX:+UseZGC ${JAVA_OPTS} \
  18. -jar app.jar