From 4de9426f7d3f7d7adf2fe0d13ca0fd59e0fce842 Mon Sep 17 00:00:00 2001 From: govardhan Date: Thu, 19 Jun 2025 21:46:47 +0530 Subject: [PATCH] fd --- Dockerfile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2427c7b..c35b8a8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,12 +21,16 @@ RUN apt-get update -o Acquire::Retries=10 -o Acquire::http::Timeout=30 && \ gcc \ g++ \ make && \ - rm -rf /var/lib/apt/lists/* && \ - ln -sf /usr/bin/python3.9 /usr/bin/python3 + rm -rf /var/lib/apt/lists/* -# Upgrade pip and install MkDocs and plugins +# Configure pip to use a reliable mirror and increase timeouts RUN python3 -m pip install --no-cache-dir --upgrade pip && \ - pip install --no-cache-dir \ + pip config set global.index-url https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple && \ + pip config set install.timeout 60 && \ + pip config set install.retries 5 + +# Install MkDocs and plugins +RUN pip install --no-cache-dir \ mkdocs==1.6.1 \ mkdocs-material==9.5.39 \ mkdocs-macros-plugin==1.2.0 \