Dockerfile 614 B

123456789101112131415161718192021
  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/snailjob/logs
  7. WORKDIR /ruoyi/snailjob
  8. ENV LANG=C.UTF-8 LC_ALL=C.UTF-8 JAVA_OPTS="-Xms512m -Xmx1024m"
  9. EXPOSE 8800
  10. EXPOSE 17888
  11. ADD ./target/ruoyi-snailjob-server.jar ./app.jar
  12. ENTRYPOINT java -Djava.security.egd=file:/dev/./urandom \
  13. -XX:+HeapDumpOnOutOfMemoryError -XX:+UseZGC ${JAVA_OPTS} \
  14. -jar app.jar