部署文件

This commit is contained in:
yuzl6 2024-04-06 15:18:52 +08:00
parent 0b99d54edf
commit fad4f8e19e
3 changed files with 18 additions and 2 deletions

View File

@ -2,7 +2,7 @@
FROM openjdk:8-jdk-alpine FROM openjdk:8-jdk-alpine
# 将本地文件复制到容器中 # 将本地文件复制到容器中
COPY target/my-app.jar /app.jar COPY ruoyi-admin.jar /ruoyi-admin.jar
# 运行应用 # 运行应用
ENTRYPOINT ["java","-jar","/app.jar"] ENTRYPOINT ["java","-jar","/ruoyi-admin.jar"]

8
DockerFile_ruoyi-monitor Normal file
View File

@ -0,0 +1,8 @@
# 使用官方的 Java 运行时作为父镜像
FROM openjdk:8-jdk-alpine
# 将本地文件复制到容器中
COPY ruoyi-monitor.jar /ruoyi-monitor.jar
# 运行应用
ENTRYPOINT ["java","-jar","/ruoyi-monitor.jar"]

View File

@ -0,0 +1,8 @@
# 使用官方的 Java 运行时作为父镜像
FROM openjdk:8-jdk-alpine
# 将本地文件复制到容器中
COPY ruoyi-monitor.jar /ruoyi-monitor.jar
# 运行应用
ENTRYPOINT ["java","-jar","/ruoyi-monitor.jar"]