-
发现容器运行,默认时间是UTC, 可否修改为CST;这样和本地的时间一致了。不过我想这个也不会影响项目的运行吧? |
Beta Was this translation helpful? Give feedback.
Answered by
ourines
Dec 19, 2024
Replies: 2 comments
-
是的,并无实质影响,你也可以在启动 contrainer 时指定 LC |
Beta Was this translation helpful? Give feedback.
0 replies
-
可以自行替换 Lines 3 to 6 in a67bc0a FROM python:3.10-slim
RUN apt-get update && \
apt-get install -y tzdata build-essential unzip && \
# 设置时区为中国标准时间(CST)
ln -snf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
echo "Asia/Shanghai" > /etc/timezone
COPY core/requirements.txt /tmp/requirements.txt
RUN pip install --no-cache-dir -r /tmp/requirements.txt
RUN playwright install
RUN playwright install-deps
WORKDIR #/app
# 下载并解压 PocketBase
ADD https://github.com/pocketbase/pocketbase/releases/download/v0.23.4/pocketbase_0.23.4_linux_amd64.zip /tmp/pb.zip
# 对于 arm 设备
# ADD https://github.com/pocketbase/pocketbase/releases/download/v0.23.4/pocketbase_0.23.4_linux_arm64.zip /tmp/pb.zip
RUN unzip /tmp/pb.zip -d /pb/
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
EXPOSE 8090
# EXPOSE 8077
CMD tail -f /dev/null |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
bigbrother666sh
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
可以自行替换
Dockerfile
文件wiseflow/Dockerfile
Lines 3 to 6 in a67bc0a