疯狂的狮子li
2023-05-22 d3a1b496fbb4c33b8e3d7b28fc1802b5f22e195b
ruoyi-admin/Dockerfile
@@ -1,9 +1,10 @@
FROM anapsix/alpine-java:8_server-jre_unlimited
FROM findepi/graalvm:java17-native
MAINTAINER Lion Li
RUN mkdir -p /ruoyi/server/logs \
    /ruoyi/server/temp
    /ruoyi/server/temp \
    /ruoyi/skywalking/agent
WORKDIR /ruoyi/server
@@ -13,4 +14,10 @@
ADD ./target/ruoyi-admin.jar ./app.jar
ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-Dserver.port=${SERVER_PORT}","-jar", "app.jar"]
ENTRYPOINT ["java", \
            "-Djava.security.egd=file:/dev/./urandom", \
            "-Dserver.port=${SERVER_PORT}", \
            # 应用名称 如果想区分集群节点监控 改成不同的名称即可
#            "-Dskywalking.agent.service_name=ruoyi-server", \
#            "-javaagent:/ruoyi/skywalking/agent/skywalking-agent.jar", \
            "-jar", "app.jar"]