diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e0a6c60 --- /dev/null +++ b/Dockerfile @@ -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"] diff --git a/grail-patient-archives-server/pom.xml b/grail-patient-archives-server/pom.xml index fcfeead..d7fc14e 100644 --- a/grail-patient-archives-server/pom.xml +++ b/grail-patient-archives-server/pom.xml @@ -9,6 +9,8 @@ 3.6.3 + 3.6.3 + grail-patient-archives-server @@ -85,4 +87,22 @@ 3.6.3 + + + + ${project.artifactId} + + + org.springframework.boot + spring-boot-maven-plugin + + + + repackage + + + + + + diff --git a/grail-patient-archives-server/src/main/resources/logback.xml b/grail-patient-archives-server/src/main/resources/logback.xml index c1d91b8..fbd010b 100644 --- a/grail-patient-archives-server/src/main/resources/logback.xml +++ b/grail-patient-archives-server/src/main/resources/logback.xml @@ -1,7 +1,7 @@ - +