修复openapi模块docker部署失败的问题

This commit is contained in:
2026-08-07 12:11:40 +08:00
parent 5035f75fd7
commit ceafeba393
2 changed files with 6 additions and 0 deletions

View File

@@ -8,6 +8,9 @@ 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
# 创建 JVM GC 日志、堆转储和应用日志目录
RUN mkdir -p /opt/logs
COPY ./target/blade-openapi.jar /opt/app.jar COPY ./target/blade-openapi.jar /opt/app.jar
WORKDIR /opt WORKDIR /opt

View File

@@ -8,6 +8,9 @@ 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
# 创建 JVM GC 日志、堆转储和应用日志目录
RUN mkdir -p /opt/logs
COPY ./target/blade-openapi.jar /opt/app.jar COPY ./target/blade-openapi.jar /opt/app.jar
WORKDIR /opt WORKDIR /opt