ruoyi-flex/ruoyi-extra/ruoyi-monitor/Dockerfile
2024-04-08 09:08:29 +08:00

14 lines
420 B
Docker

# 使用官方的 Java 运行时作为父镜像
FROM registry.cn-qingdao.aliyuncs.com/yuzl1/jdk:21
# 将本地文件复制到容器中
COPY target/ruoyi-monitor.jar /ruoyi-monitor.jar
# 设置环境变量
ENV JAVA_OPTS="-server -Xms512m -Xmx512m"
# 时区设置
RUN echo "Asia/shanghai" > /etc/timezone
# 运行应用
ENTRYPOINT exec java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ruoyi-monitor.jar