添加Dockerfile
parent
f7b00453a0
commit
314315e5f8
|
@ -0,0 +1,21 @@
|
|||
FROM anolis-registry.cn-zhangjiakou.cr.aliyuncs.com/openanolis/openjdk:17-8.6
|
||||
|
||||
|
||||
# 暴露端口号
|
||||
EXPOSE 10008/tcp
|
||||
|
||||
|
||||
# 挂载目录位置
|
||||
VOLUME /home/logs/grail-information
|
||||
|
||||
#构造 复制外部文件到docker 内部
|
||||
COPY grail-patient-information-server/target/grail-patient-information-server.jar /home/app.jar
|
||||
|
||||
# 工作目录 exec -it 进来就是默认这个目录
|
||||
WORKDIR /home
|
||||
|
||||
# 指定东八区
|
||||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > .etc.timezone
|
||||
|
||||
# 启动java程序
|
||||
CMD ["java","-Dfile.encoding=UTF-8","-jar","/home/app.jar"]
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<configuration scan="true" scanPeriod="60 seconds" debug="false">
|
||||
<!-- 日志存放路径 -->
|
||||
<property name="log.path" value="./logs/grail/patient/wallet" />
|
||||
<property name="log.path" value="./logs/grail/patient-information" />
|
||||
<!-- 日志输出格式 -->
|
||||
<property name="log.pattern" value="%d{HH:mm:ss.SSS} [%thread] %-5level %logger{20} - [%method,%line] - %msg%n" />
|
||||
|
||||
|
|
Loading…
Reference in New Issue