初始化1

master
Lu-aiLiang 2023-09-20 09:26:30 +08:00
parent 40d8c50172
commit 47c724f627
1 changed files with 15 additions and 0 deletions

15
Dockerfile 100644
View File

@ -0,0 +1,15 @@
#起给能你
FROM anolis-registry.cn-zhangjiakou.cr.aliyuncs.com/openanolis/openjdk:17-8.6
#基露的端口位置
EXPOSE 9201/tcp
#挂载的日录位置
VOLUME /home/logs/bawei-system
#构建复制外部文件到docker内部
COPY /base-system-server/target/base-system-server.jar /home/app.jar
#工作目录。 exec -it 进来就是默认这个日吴
WORKDIR /home
#指定东人区
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
#启动javo程序
CMD ["java","-Dfile.encoding=UTF-8","-jar","/home/app.jar"]
#111