字典 开启 关闭

master
Qin Dong Ming 2024-08-21 16:01:04 +08:00
parent c61e46c43e
commit 068dde3ab2
1 changed files with 14 additions and 6 deletions

View File

@ -1,15 +1,23 @@
# |-home
# |- app.jsp - 启动jar包
# |- logs - 日志文件
#指定构建镜像的起始镜像
FROM anolis-registry.cn-zhangjiakou.cr.aliyuncs.com/openanolis/dragonwell:17.0.4.0.4.8-standard-ga-8.6
# 执行一些必须的条件
#定义时区参数
ENV TZ=Asia/Shanghai
# 执行一些必备的条件
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo '$TZ' > /etc/timezone
VOLUME ["/home/logs/cloud-etl"]
#挂载工作目录
VOLUME ["/home/logs/cloud-etl"]
#拷贝执行jar包文件
COPY ./target/cloud-etl.jar /home/app.jar
ENV LANG C.UTF-8
ENV LANGUAGE C.UTF-8
ENV LC_ALL C.UTF-8
ENTRYPOINT ["java", "-jar", "/home/app.jar"]
# 构建启动命令
ENTRYPOINT ["java", "-Dfile.encoding=utf-8", "-jar"]
CMD ["/home/app.jar"]