-
Notifications
You must be signed in to change notification settings - Fork 31
/
Dockerfile
30 lines (23 loc) · 1.15 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM node:16-bullseye-slim
WORKDIR /opt
# Install pandoc and other linting/helper tools
RUN apt-get update && apt-get -y install \
python3-pip \
unzip
# Install psp CLI and additional linting tool
RUN npm install -g \
@jupiterone/security-policy-builder
# Install Mkdocs
RUN python3 -m pip install --no-cache-dir importlib_metadata mkdocs-material==5.5.12
### NOTE: The following workaround is not longer working and therefore no longer needed,
### but is left here for reference
########################################################################################
### NOTE: there appears to be an undocumented edge-case preventing Debian9 from
# succesfully installing mkdocs with python3. Here, we're explicitly copying the
# dependencies from a pinned squidfunk/mkdocs-material image, which should
# always 'just work'
#RUN python3 -m pip install --no-cache-dir importlib_metadata
#COPY --from=squidfunk/mkdocs-material:5.5.12 /usr/local/lib/python3.8/site-packages/ /usr/local/lib/python3.5/dist-packages/
# This makes the 'mkdocs' command work as a 'docker run' argument
COPY bin/docker-mkdocs /usr/local/bin/mkdocs
RUN chmod +x /usr/local/bin/mkdocs