You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
676 B
Docker
24 lines
676 B
Docker
#FROM findepi/graalvm:java17-native
|
|
FROM openjdk:17.0.2-oraclelinux8
|
|
|
|
MAINTAINER Lion Li
|
|
|
|
RUN mkdir -p /ruoyi/resource/logs \
|
|
/ruoyi/resource/temp \
|
|
/ruoyi/skywalking/agent
|
|
|
|
WORKDIR /ruoyi/resource
|
|
|
|
ENV SERVER_PORT=9204 LANG=C.UTF-8 LC_ALL=C.UTF-8 JAVA_OPTS=""
|
|
|
|
EXPOSE ${SERVER_PORT}
|
|
|
|
ADD ./target/ruoyi-resource.jar ./app.jar
|
|
|
|
ENTRYPOINT java -Djava.security.egd=file:/dev/./urandom -Dserver.port=${SERVER_PORT} \
|
|
#-Dskywalking.agent.service_name=ruoyi-resource \
|
|
#-javaagent:/ruoyi/skywalking/agent/skywalking-agent.jar \
|
|
-jar app.jar \
|
|
-XX:+HeapDumpOnOutOfMemoryError -Xlog:gc*,:time,tags,level -XX:+UseZGC ${JAVA_OPTS}
|
|
|