Skip to content
Advertisement

Using Docker with Python Poetry?

I’ve been using Docker with pipenv for my data science deployment setup and now I want to change to Poetry. My Dockerfile is:

JavaScript

My pyproject.toml:

JavaScript

This is based on other Dockerfiles that I found on StackOverflow. I run into the following problem:

JavaScript

So this looks like the Poetry is not used, where Jupyter is installed, and therefore it cannot be found. How can I fix this?

Advertisement

Answer

Based on Asgeer’s answer I managed to fix the Dockerfile. However, using Alpine turned out to be pretty impossible and the final solution is:

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement