File tree Expand file tree Collapse file tree 3 files changed +15
-6
lines changed Expand file tree Collapse file tree 3 files changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ WORKDIR /tmp
34
34
COPY material material
35
35
COPY package.json package.json
36
36
COPY README.md README.md
37
- COPY requirements.txt requirements.txt
37
+ COPY * requirements.txt ./
38
38
COPY pyproject.toml pyproject.toml
39
39
40
40
# Perform build and cleanup artifacts and caches
66
66
"pillow>=9.0" \
67
67
"cairosvg>=2.5" ; \
68
68
fi \
69
+ && \
70
+ if [ -e user-requirements.txt ]; then \
71
+ pip install -U -r user-requirements.txt; \
72
+ fi \
69
73
&& \
70
74
apk del .build \
71
75
&& \
Original file line number Diff line number Diff line change @@ -117,11 +117,12 @@ The following plugins are bundled with the Docker image:
117
117
118
118
Material for MkDocs only bundles selected plugins in order to keep the size
119
119
of the official image small. If the plugin you want to use is not included,
120
- create a new `Dockerfile` and extend the official Docker image:
120
+ create a `user-requirements.txt` file in the repository root with the packages
121
+ you want to install additionally, e.g.:
121
122
122
- ``` Dockerfile
123
- FROM squidfunk/ mkdocs-material
124
- RUN pip install ...
123
+ ``` txt title="user-requirements.txt"
124
+ mkdocs-macros-plugin==0.7.0
125
+ mkdocs-glightbox>=0.3.1
125
126
```
126
127
127
128
Next, you can build the image with the following command:
@@ -130,7 +131,8 @@ The following plugins are bundled with the Docker image:
130
131
docker build -t squidfunk/mkdocs-material .
131
132
```
132
133
133
- The new image can be used exactly like the official image.
134
+ The new image will have additional packages installed and can be used
135
+ exactly like the official image.
134
136
135
137
### with git
136
138
Original file line number Diff line number Diff line change @@ -79,6 +79,9 @@ docker login -u ${GH_USERNAME} -p ${GHCR_TOKEN} ghcr.io
79
79
docker pull ghcr.io/${GH_USERNAME}/mkdocs-material-insiders
80
80
```
81
81
82
+ Should you wish to add additional plugins to the insiders container image, follow the steps
83
+ outlined in the [ Getting Started guide] ( ../getting-started.md#with-docker ) .
84
+
82
85
[ ^ 2 ] :
83
86
Earlier, Insiders provided a dedicated Docker image which was available to
84
87
all sponsors. On March 21, 2021, the image was deprecated for the reasons
You can’t perform that action at this time.
0 commit comments