fd
This commit is contained in:
12
Dockerfile
12
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 \
|
||||
|
||||
Reference in New Issue
Block a user