部署文件
This commit is contained in:
parent
0b99d54edf
commit
fad4f8e19e
@ -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
8
DockerFile_ruoyi-monitor
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
# 使用官方的 Java 运行时作为父镜像
|
||||||
|
FROM openjdk:8-jdk-alpine
|
||||||
|
|
||||||
|
# 将本地文件复制到容器中
|
||||||
|
COPY ruoyi-monitor.jar /ruoyi-monitor.jar
|
||||||
|
|
||||||
|
# 运行应用
|
||||||
|
ENTRYPOINT ["java","-jar","/ruoyi-monitor.jar"]
|
8
DockerFile_ruoyi-powerjob-server
Normal file
8
DockerFile_ruoyi-powerjob-server
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
# 使用官方的 Java 运行时作为父镜像
|
||||||
|
FROM openjdk:8-jdk-alpine
|
||||||
|
|
||||||
|
# 将本地文件复制到容器中
|
||||||
|
COPY ruoyi-monitor.jar /ruoyi-monitor.jar
|
||||||
|
|
||||||
|
# 运行应用
|
||||||
|
ENTRYPOINT ["java","-jar","/ruoyi-monitor.jar"]
|
Loading…
Reference in New Issue
Block a user