Fails to install Poetry when running docker-compose
See original GitHub issueStep 6/8 : RUN poetry install && bundler install
---> Running in da6a35f96e3d
/bin/sh: poetry: not found
ERROR: Service 'web' failed to build: The command '/bin/sh -c poetry install && bundler install' returned a non-zero code: 127
This is the error I get when I run docker-compose up -d
Issue Analytics
- State:
- Created 5 years ago
- Reactions:8
- Comments:5
Top Results From Across the Web
Poetry still fails to install in Docker · Issue #1227 - GitHub
Adding --no-root to poetry install seems to fix this without needing to copy the source. This allows Docker builds to better cache a...
Read more >Installing Poetry fails on Docker - python - Stack Overflow
I use Poetry, so I have to install Poetry in the container. Below is my Dockerfile . FROM python:3.9.7-alpine WORKDIR /usr/src/app ENV ...
Read more >Support poetry in docker-compose python interpreter - YouTrack
Have access to all installed by poetry for the project. What happens instead? Only the packages necessary to run poetry in the global...
Read more >Having trouble with Python poetry in docker - Reddit
My project doesn't have an /app/dist path. As far as I'm aware, that gets created during the builder phase with poetry install and...
Read more >Introduction | Documentation | Poetry - Python dependency ...
If you decide Poetry isn't your thing, you can completely remove it from your system by running the installer again with the --uninstall...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I solved the problem with changing DockerFile to:
In case it helps anyone years later 😅 I kept the same base image but amended just a couple of lines below. Looks like
py2-anyjson
support was dropped from alpine here and then the poetry stuff I guess was ripped off from above 😄