From fdba64c91db6384bccbcb862c723d89683e0f1d1 Mon Sep 17 00:00:00 2001 From: Cameron Griffin Date: Thu, 24 Aug 2023 12:41:50 -0400 Subject: [PATCH] fixed mkdocs error --- Dockerfile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7573a14..7f1144a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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