Skip to content

Commit

Permalink
Merge pull request #252 from JupiterOne/mkdocs-patch-1
Browse files Browse the repository at this point in the history
fixed mkdocs error
  • Loading branch information
electricgull authored Aug 24, 2023
2 parents 4b0ad7b + fdba64c commit 0accddb
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,18 @@ RUN npm install -g \

# 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/
#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
Expand Down

0 comments on commit 0accddb

Please sign in to comment.