File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,14 +6,17 @@ FROM docker.io/python:3.12.11-alpine@sha256:c610e4a94a0e8b888b4b225bfc0e6b59dee6
66
77WORKDIR /run
88
9- # Install MkDocs
10- RUN pip install mkdocs-material[recommended]
9+ COPY requirements.txt .
1110
12- # Install MkDocs Git-related features (e.g. revisions, collaborators, ...)
13- RUN apk add --no-cache git && \
14- pip install \
15- mkdocs-git-revision-date-localized-plugin \
16- mkdocs-git-committers-plugin-2 && \
11+ RUN \
12+ # # Install MkDocs and its dependencies
13+ pip install --no-cache-dir --require-hashes --requirement requirements.txt \
14+ && \
15+ rm requirements.txt \
16+ # # Setup prerequisites for MkDocs Git-related features (e.g. revisions, collaborators, ...)
17+ && \
18+ apk add --no-cache git \
19+ && \
1720 git config --system --add safe.directory /run
1821
1922USER daemon
Original file line number Diff line number Diff line change 2222
2323ROOT_PROJECT_DIR=" ${SCRIPT_DIR} /../.."
2424
25- echo ' Building Docker image for MkDocs (can take a while)'
25+ echo ' Building Docker image for MkDocs (can take a while - ~1 minutes )'
2626docker build --progress quiet -t docker-papermc-server/mkdocs " ${SCRIPT_DIR} "
2727
2828echo
You can’t perform that action at this time.
0 commit comments