dockerfile编写
parent
028cdefe66
commit
0cf77fce40
|
@ -0,0 +1,17 @@
|
||||||
|
# 基础镜像
|
||||||
|
FROM anolis-registry.cn-zhangjiakou.cr.aliyuncs.com/openanolis/openjdk:17-8.6
|
||||||
|
|
||||||
|
#暴露端口位置
|
||||||
|
EXPOSE 9201
|
||||||
|
|
||||||
|
# 挂载目录
|
||||||
|
VOLUME /home/logs/bawei-system
|
||||||
|
|
||||||
|
# 复制jar文件到docker内部
|
||||||
|
COPY /target/menghang-base-system-server.jar /home/app.jar
|
||||||
|
|
||||||
|
#工作目录 exec -it 进来默认就是这个目录
|
||||||
|
WORKDIR /home
|
||||||
|
|
||||||
|
# 启动java程序
|
||||||
|
ENTRYPOINT ["java","-Dfile.encoding=UTF-8","-jar","/home/app.jar"]
|
|
@ -1,7 +1,7 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<configuration scan="true" scanPeriod="60 seconds" debug="false">
|
<configuration scan="true" scanPeriod="60 seconds" debug="false">
|
||||||
<!-- 日志存放路径 -->
|
<!-- 日志存放路径 -->
|
||||||
<property name="log.path" value="logs/bawei-system" />
|
<property name="log.path" value="./logs/bawei-system" />
|
||||||
<!-- 日志输出格式 -->
|
<!-- 日志输出格式 -->
|
||||||
<property name="log.pattern" value="%d{HH:mm:ss.SSS} [%thread] %-5level %logger{20} - [%method,%line] - %msg%n" />
|
<property name="log.pattern" value="%d{HH:mm:ss.SSS} [%thread] %-5level %logger{20} - [%method,%line] - %msg%n" />
|
||||||
|
|
||||||
|
|
2
pom.xml
2
pom.xml
|
@ -30,7 +30,7 @@
|
||||||
</distributionManagement>
|
</distributionManagement>
|
||||||
|
|
||||||
<description>
|
<description>
|
||||||
menghang-base-file文件服务
|
menghang-base-system公共系统服务
|
||||||
</description>
|
</description>
|
||||||
<modules>
|
<modules>
|
||||||
<module>menghang-base-system-common</module>
|
<module>menghang-base-system-common</module>
|
||||||
|
|
Loading…
Reference in New Issue