Dockerfile 579 B

1234567891011121314151617181920
  1. # 贝尔实验室 Spring 官方推荐镜像 JDK下载地址 https://bell-sw.com/pages/downloads/
  2. FROM bellsoft/liberica-openjdk-alpine:17.0.11-cds
  3. #FROM bellsoft/liberica-openjdk-alpine:21.0.3-cds
  4. #FROM findepi/graalvm:java17-native
  5. LABEL maintainer="Lion Li"
  6. RUN mkdir -p /ruoyi/monitor/logs
  7. WORKDIR /ruoyi/monitor
  8. ENV LANG=C.UTF-8 LC_ALL=C.UTF-8 JAVA_OPTS=""
  9. EXPOSE 9090
  10. ADD ./target/ruoyi-monitor-admin.jar ./app.jar
  11. ENTRYPOINT java -Djava.security.egd=file:/dev/./urandom \
  12. -XX:+HeapDumpOnOutOfMemoryError -XX:+UseZGC ${JAVA_OPTS} \
  13. -jar app.jar