字典 开启 关闭

master
Qin Dong Ming 2024-08-21 16:03:57 +08:00
parent 068dde3ab2
commit 3c8bf5100a
1 changed files with 7 additions and 12 deletions

View File

@ -1,23 +1,18 @@
# |-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
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo "$TZ" > /etc/timezone
#挂载工作目录
VOLUME ["/home/logs/cloud-etl"]
# 挂载工作目录
VOLUME ["/home/logs"]
#拷贝执行jar包文件
# 拷贝执行 jar 包文件
COPY ./target/cloud-etl.jar /home/app.jar
# 构建启动命令
ENTRYPOINT ["java", "-Dfile.encoding=utf-8", "-jar"]
CMD ["/home/app.jar"]
ENTRYPOINT ["java", "-Dfile.encoding=utf-8", "-jar", "/home/app.jar"]