Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于时区问题? #156

Open
ipv6ok opened this issue Dec 18, 2024 · 2 comments
Open

关于时区问题? #156

ipv6ok opened this issue Dec 18, 2024 · 2 comments

Comments

@ipv6ok
Copy link

ipv6ok commented Dec 18, 2024

发现容器运行,默认时间是UTC, 可否修改为CST;这样和本地的时间一致了。不过我想这个也不会影响项目的运行吧?

@bigbrother666sh
Copy link
Member

是的,并无实质影响,你也可以在启动 contrainer 时指定 LC

@ourines
Copy link
Contributor

ourines commented Dec 19, 2024

可以自行替换 Dockerfile文件

wiseflow/Dockerfile

Lines 3 to 6 in a67bc0a

RUN apt-get update && \
apt-get install -y tzdata build-essential unzip
COPY core/requirements.txt /tmp/requirements.txt

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants