What are the best practices for using poetry with docker? #8780
-
Most tutorials recommend using pip to install poetry. Will this affect code dependencies? Can I install poetry using pipx in docker and exclude poetry in the final image via a multi-stage build? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
I don't know if it's the best practice, but personally, I use multistage build like:
|
Beta Was this translation helpful? Give feedback.
-
Best practice is whatever works for you. Different people use tools in different ways. There is no one perfect way. |
Beta Was this translation helpful? Give feedback.
I don't know if it's the best practice, but personally, I use multistage build like: