feat(新增): 完善打包环境和线上部署

This commit is contained in:
bunny 2024-07-30 13:40:12 +08:00
parent 1d8cf6ef55
commit 1997694492
5 changed files with 24 additions and 5 deletions

View File

@ -1,4 +1,4 @@
FROM openjdk:17
FROM openjdk:21
MAINTAINER bunny
#系统编码
@ -17,5 +17,8 @@ COPY target/*.jar /home/bunny/app.jar
#启动容器时的进程
ENTRYPOINT ["java","-jar","/home/bunny/app.jar"]
#暴露 8080 端口
EXPOSE 8500
#暴露 8800 端口
EXPOSE 8080
# maven 打包
# mvn clean package -Pprod -DskipTests

View File

@ -18,4 +18,7 @@ COPY target/*.jar /home/bunny/app.jar
ENTRYPOINT ["java","-jar","/home/bunny/app.jar"]
#暴露 8800 端口
EXPOSE 8800
EXPOSE 8080
# maven 打包
# mvn clean package -Pprod -DskipTests

View File

@ -1,3 +1,8 @@
# 线上禁用文档
knife4j:
enable: true
production: true
bunny:
datasource:
host: 192.168.3.100

View File

@ -18,4 +18,7 @@ COPY target/*.jar /home/bunny/app.jar
ENTRYPOINT ["java","-jar","/home/bunny/app.jar"]
#暴露 8800 端口
EXPOSE 8800
EXPOSE 8080
# maven 打包
# mvn clean package -Pprod -DskipTests

View File

@ -1,3 +1,8 @@
# 线上禁用文档
knife4j:
enable: true
production: true
bunny:
datasource:
host: 192.168.3.100