I\'m following the fig guide to using docker with a python application, but when docker gets up to the command
RUN pip install -r requirements.txt
In case someone is reading this using docker-compose. I managed to resolve this by changing my yaml file as follows
version: 3.4 service: my-app build: context: . network: host
which is equivalent to writing
docker build . --network host