Set Docker container time zone to Shanghai

This commit is contained in:
Hmily 2024-01-02 12:07:13 +08:00 committed by GitHub
parent 3ea1f7481a
commit 4999f785ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,6 +7,8 @@ COPY . /app
RUN pip install --no-cache-dir -r requirements.txt
RUN apt-get update && \
apt-get install -y ffmpeg
apt-get install -y ffmpeg tzdata && \
ln -fs /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
dpkg-reconfigure -f noninteractive tzdata
CMD ["python", "main.py"]
CMD ["python", "main.py"]