增加时区
This commit is contained in:
parent
fdd7f47305
commit
5079458f55
@ -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
|
||||||
|
|
||||||
|
|||||||
@ -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:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user