Installation of exporter plugin
Context
I am trying to install mkdocs-exporter in the docker container as described in the documentation
FROM squidfunk/mkdocs-material
RUN pip install mkdocs-exporter
https://squidfunk.github.io/mkdocs-material/getting-started/#with-docker
one requirement is "playwright" and this can not be installed because it does not find any usable versions. It seems to be a problem with the platform (the container)
Bug description
Try to install playwright
pip install playwright
in the container fails with "no version"
Related links
Reproduction
The reproduction does not really apply here i think
Steps to reproduce
Add
RUN pip install mkdocs-exporter
to the Dockerfile and build the container
docker build -t squidfunk/mkdocs-material .
the installation does not finish with this error (error from manual pip install in container)
ERROR: Could not find a version that satisfies the requirement playwright==1.33.0 (from versions: none)
Browser
No response
Before submitting
- [X] I have read and followed the bug reporting guidelines.
- [X] I have attached links to the documentation, and possibly related issues and discussions.
- [X] I assure that I have removed all customizations before submitting this bug report.
- [X] I have attached a .zip file with a minimal reproduction using the built-in info plugin.
Hello @sm100327, the issue is probably same as https://stackoverflow.com/questions/74254853/installing-playwright-in-docker-image-fails Material for MkDocs uses Alpine-based containers, and playwright doesn't compile a wheel for this Linux variant.
So I guess your only option now is to make another Docker image based on Ubuntu, or modify the one provided by Microsoft https://hub.docker.com/r/microsoft/playwright
Hi @kamilkrzyskow
thank you for the fast answer, ok, we will discuss the option of creating our own container
soeren
Thanks for reporting. The aim of our official image is to provide the smallest possible variant for getting going, which given that it's Alpine Linux, comes with limitations. For advanced use, a custom Docker image is the way to go.
Closing as out of scope.