Poetry not installing current project in docker build #9907
Unanswered
tom-whitehead
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, need some help. I have a poetry project that runs well locally. When I do
poetry install
it installs the current project and I can import my files as an installed Python module (e.gfrom mymodule.dtos import MyObject
, rather than than using a relative import). However, when I build a docker image and try to run it, I get a module not found error and it doesn't run.This is my
pyproject.toml
:And this is my Docker file:
Any help from someone with experience with using docker and Poetry would be much appreciated. Ideally I want to keep my module as an installed to make testing and CI easier down the line.
Beta Was this translation helpful? Give feedback.
All reactions