dockerfile的添加

pull/2/head
ZhiShuo_Lou 2023-10-27 18:41:58 +08:00
parent 6c59434e5a
commit 6ecefff6f7
1 changed files with 17 additions and 0 deletions

17
Dockerfile 100644
View File

@ -0,0 +1,17 @@
# 基础镜像
FROM anolis-registry.cn-zhangjiakou.cr.aliyuncs.com/openanolis/openjdk:17-8.6
#暴露端口位置
EXPOSE 9001
# 挂载目录
VOLUME /home/logs/health-mybasic
# 复制jar文件到docker内部
COPY /target/one-health-mybasic.jar /home/app.jar
#工作目录 exec -it 进来默认就是这个目
WORKDIR /home
# 启动java程序
ENTRYPOINT ["java","-Dfile.encoding=UTF-8","-jar","/home/app.jar"]