dockerfile添加时区
build / build-rust (push) Failing after 13m27s Details

This commit is contained in:
soul-walker 2024-09-19 11:58:32 +08:00
parent d9b8b38590
commit 957946a822
1 changed files with 9 additions and 0 deletions

View File

@ -2,6 +2,15 @@ FROM alpine
ENV RUN_MODE=prod
# 安装 tzdata 包
RUN apk add --no-cache tzdata
# 设置时区环境变量,例如设置为 Asia/Shanghai
ENV TZ=Asia/Shanghai
# 复制时区信息到系统时区目录
RUN cp /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
WORKDIR /rtss_sim
COPY ./target/x86_64-unknown-linux-musl/release/rtss_simulation ./rtss_sim
COPY ./conf/* ./conf/