menghang-base-gen/DockerFile

16 lines
525 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# 起始镜像点
FROM anolis-registry.cn-zhangjiakou.cr.aliyuncs.com/openanolis/openjdk:17-8.6
# 暴露的端口位置
EXPOSE 9202/tcp
# 挂载的目录位置
VOLUME /home/logs/bawei-gen
# 建构复制外部文件到docker内部
COPY ./target/base-gen.jar /home/app.jar
# 工作目录exec -it 进来就是默认这个目录
WORKDIR /home
# 指定东八区
RUN ln -snf /usr/share/zenoinfo/$TZ /etc/localtime && echo $TZ > /etc/timeznoe
#启动java程序
ENTRYPOINT ["java","-Dfile.encoding=UTF-8","-jar","/home/app.jar"]