File tree Expand file tree Collapse file tree 3 files changed +6
-13
lines changed Expand file tree Collapse file tree 3 files changed +6
-13
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 ./
37
+ COPY requirements.txt 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
- [ -e user-requirements.txt ] && pip install -U -r user-requirements.txt \
71
69
&& \
72
70
apk del .build \
73
71
&& \
Original file line number Diff line number Diff line change @@ -117,12 +117,11 @@ 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 `user-requirements.txt` file in the repository root with the packages
121
- you want to install additionally, e.g.:
120
+ create a new `Dockerfile` and extend the official Docker image:
122
121
123
- ``` txt title="user-requirements.txt"
124
- mkdocs-macros-plugin==0.7.0
125
- mkdocs-glightbox>=0.3.1
122
+ ``` Dockerfile
123
+ FROM squidfunk/ mkdocs-material
124
+ RUN pip install ...
126
125
```
127
126
128
127
Next, you can build the image with the following command:
@@ -131,8 +130,7 @@ The following plugins are bundled with the Docker image:
131
130
docker build -t squidfunk/mkdocs-material .
132
131
```
133
132
134
- The new image will have additional packages installed and can be used
135
- exactly like the official image.
133
+ The new image can be used exactly like the official image.
136
134
137
135
### with git
138
136
Original file line number Diff line number Diff line change @@ -79,9 +79,6 @@ 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
-
85
82
[ ^ 2 ] :
86
83
Earlier, Insiders provided a dedicated Docker image which was available to
87
84
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