-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Poetry still fails to install in Docker #1227
Comments
You're trying to install the sensortag package but haven't included it's code in the docker image. |
Is there a better solve than adding the code to the docker image? Consider the Docker Compose getting started page. Here we install packages (with pip) before the code is added to the image. Often times in development, the code is just mounted after build. However this can't be done with Poetry if the pyproject.toml references a package, which is often necessary for packaging. |
Adding |
@bufke I'm working on a project that requires similar logic and came across this thread. If i'm understanding correctly, adding |
@Edwardp17 for example in my case we want to cache poetry installing the dependencies, that sometimes are coming from private github source besides having a large number. Our code changes much more frequently than the set of dependencies. So we also make use of the To mitigate the issue of not being able to be imported, we do a |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I am on the latest Poetry version.
I have searched the issues of this repo and believe that this is not a duplicate.
If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option).OS version and name: Windows 10, Docker with python:3.7
Poetry version: 0.12.17
Link of a Gist with the contents of your pyproject.toml file: https://gist.github.com/fralik/26a0797e1cd940c89e871bccabcad982
Issue
I believe this is a similar issue to #512. That issue is marked as resolved, however I still see the error.
I am trying to use poetry in Docker with a custom packaging scheme (see my pyproject.toml file). If I build a package locally with
poetry build
, then I can see that Poetry finds modules and packages them successfully.However, once I try to build a Docker image I get this exception:
My Dockerfile is provided as well.
If I remove
packages
frompyproject.toml
, then everything installs fine in docker.The text was updated successfully, but these errors were encountered: