master
parent
50a9947040
commit
68752f4d01
|
@ -0,0 +1,21 @@
|
||||||
|
FROM anolis-registry.cn-zhangjiakou.cr.aliyuncs.com/openanolis/openjdk:17-8.6
|
||||||
|
|
||||||
|
|
||||||
|
# 暴露端口号
|
||||||
|
EXPOSE 10010/tcp
|
||||||
|
|
||||||
|
|
||||||
|
# 挂载目录位置
|
||||||
|
VOLUME /home/logs/grail-patient-archives
|
||||||
|
|
||||||
|
#构造 复制外部文件到docker 内部
|
||||||
|
COPY /grail-patient-archives-server/target/grail-patient-archives-server-3.6.3.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"]
|
|
@ -9,6 +9,8 @@
|
||||||
<version>3.6.3</version>
|
<version>3.6.3</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
|
<version>3.6.3</version>
|
||||||
|
|
||||||
<artifactId>grail-patient-archives-server</artifactId>
|
<artifactId>grail-patient-archives-server</artifactId>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
|
@ -85,4 +87,22 @@
|
||||||
<version>3.6.3</version>
|
<version>3.6.3</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
|
|
||||||
|
<build>
|
||||||
|
<finalName>${project.artifactId}</finalName>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<goals>
|
||||||
|
<goal>repackage</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -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/grail/patient/wallet" />
|
<property name="log.path" value="./logs/grail-patient-archives" />
|
||||||
<!-- 日志输出格式 -->
|
<!-- 日志输出格式 -->
|
||||||
<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" />
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue