Replies: 2 comments 3 replies
-
Perhaps something in the lines of using --platform:
|
Beta Was this translation helpful? Give feedback.
3 replies
-
sounds like this is a docker question rather than a poetry question and you want a multi-stage build |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to setup an environment inside a docker container that contains packages from a private google cloud repository.
I really don't want to have to authenticate from within the container as I would have to install
gcloud cli
then copy in a credential key file (that I would have to update when it expires) and then remove all of that before publishing the image. This also deosn't work well with making a key file from a github action secret when i move this to a CI/CD pipeline.My idea was to
poetry install
outside the container where I am already authenticated (even in the github action I will be authenticated) and then copy the externalsite-packages
into the container's global site packages. Using a local.venv
environment outside the container this is actually quite easy. The problem is in thepoetry install
grabbing the.whl
files for the external environment which then may be incompatible in the container.This would be similar to doing a:
So:
Beta Was this translation helpful? Give feedback.
All reactions