From cdeb9e49df5dcaf9f6d556bf41af628002eb5c20 Mon Sep 17 00:00:00 2001 From: paradiseHIT Date: Thu, 20 Jun 2024 14:44:21 +0800 Subject: [PATCH] Add gpu docker image timezone for China (#74) --- Dockerfile_gpu | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile_gpu b/Dockerfile_gpu index d6313cf0..f897a5de 100644 --- a/Dockerfile_gpu +++ b/Dockerfile_gpu @@ -15,6 +15,9 @@ RUN mv pyproject_gpu.toml pyproject.toml \ RUN poetry install && rm -rf $POETRY_CACHE_DIR FROM python:3.10-slim AS prod + +RUN rm -rf /etc/localtime && ln -s /usr/share/zoneinfo/Asia/Harbin /etc/localtime + ENV VIRTUAL_ENV=/app/.venv \ PATH="/app/.venv/bin:$PATH"