增加时区

This commit is contained in:
xiaoski 2026-07-07 10:51:40 +08:00
parent fdd7f47305
commit 5079458f55
2 changed files with 4 additions and 0 deletions

View File

@ -19,6 +19,7 @@ LABEL org.opencontainers.image.source="https://github.com/your-repo/picobot"
# Avoid interactive prompts # Avoid interactive prompts
ENV DEBIAN_FRONTEND=noninteractive ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Asia/Shanghai
# Configure domestic mirrors for pip, uv, npm (China) # Configure domestic mirrors for pip, uv, npm (China)
ENV PIP_INDEX_URL=https://mirrors.aliyun.com/pypi/simple/ ENV PIP_INDEX_URL=https://mirrors.aliyun.com/pypi/simple/
@ -27,6 +28,7 @@ ENV UV_INDEX_URL=https://mirrors.aliyun.com/pypi/simple/
# Install base tools, Python, and uv in one layer to reduce duplication # Install base tools, Python, and uv in one layer to reduce duplication
RUN apt-get update && apt-get install -y --no-install-recommends \ RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \ ca-certificates \
tzdata \
tini \ tini \
curl \ curl \
gnupg \ gnupg \
@ -45,6 +47,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
python3 \ python3 \
python3-pip \ python3-pip \
python3-venv \ python3-venv \
&& ln -snf /usr/share/zoneinfo/$TZ /etc/localtime \
&& rm -rf /var/lib/apt/lists/* \ && rm -rf /var/lib/apt/lists/* \
&& pip3 install --no-cache-dir --break-system-packages uv && pip3 install --no-cache-dir --break-system-packages uv

View File

@ -10,6 +10,7 @@ services:
- picobot_data:/app/.picobot - picobot_data:/app/.picobot
environment: environment:
- RUST_LOG=info - RUST_LOG=info
- TZ=Asia/Shanghai
command: gateway command: gateway
volumes: volumes: