mirror of
https://github.com/TheSmallHanCat/sora2api.git
synced 2026-02-04 10:14:41 +08:00
feat: 新增时区配置功能、支持UTC时间自动转换为本地时区及环境变量配置
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
FROM python:3.11-slim
|
||||
|
||||
# Set timezone to Asia/Shanghai (UTC+8) by default
|
||||
# Can be overridden with -e TZ=<timezone> when running container
|
||||
ENV TZ=Asia/Shanghai \
|
||||
TIMEZONE_OFFSET=8
|
||||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY requirements.txt .
|
||||
|
||||
Reference in New Issue
Block a user