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 \
|
gcc \
|
||||||
g++ \
|
g++ \
|
||||||
make && \
|
make && \
|
||||||
rm -rf /var/lib/apt/lists/* && \
|
rm -rf /var/lib/apt/lists/*
|
||||||
ln -sf /usr/bin/python3.9 /usr/bin/python3
|
|
||||||
|
|
||||||
# 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 && \
|
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==1.6.1 \
|
||||||
mkdocs-material==9.5.39 \
|
mkdocs-material==9.5.39 \
|
||||||
mkdocs-macros-plugin==1.2.0 \
|
mkdocs-macros-plugin==1.2.0 \
|
||||||
|
|||||||
Reference in New Issue
Block a user