Dockerfile 441 B

12345678910111213141516171819
  1. #FROM findepi/graalvm:java17-native
  2. FROM openjdk:17.0.2-oraclelinux8
  3. MAINTAINER Lion Li
  4. RUN mkdir -p /ruoyi/snailjob/logs
  5. WORKDIR /ruoyi/snailjob
  6. ENV LANG=C.UTF-8 LC_ALL=C.UTF-8 JAVA_OPTS="-Xms512m -Xmx1024m"
  7. EXPOSE 8800
  8. EXPOSE 1788
  9. ADD ./target/ruoyi-snailjob-server.jar ./app.jar
  10. ENTRYPOINT java -Djava.security.egd=file:/dev/./urandom \
  11. -XX:+HeapDumpOnOutOfMemoryError -XX:+UseZGC ${JAVA_OPTS} \
  12. -jar app.jar