This time i run week 6 exercise on my local system. i built my astra-ui docker image successfully.
when i try to built docker image for python backend using,
docker build ./getting-started-with-astra-python -t astra-backend:my-image
I'm getting this error,
Sending build context to Docker daemon 70.66kB Step 1/6 : FROM python:alpine3.7 alpine3.7: Pulling from library/python 48ecbb6b270e: Pull complete 692f29ee68fa: Pull complete 6439819450d1: Pull complete 3c7be240f7bf: Pull complete ca4b349df8ed: Pull complete Digest: sha256:35f6f83ab08f98c727dbefd53738e3b3174a48b4571ccb1910bae480dcdba847 Status: Downloaded newer image for python:alpine3.7 ---> 00be2573e9f7 Step 2/6 : COPY . /app ---> 3c81837ceab0 Step 3/6 : WORKDIR /app ---> Running in 835a3e51c8f2 Removing intermediate container 835a3e51c8f2 ---> edb127ec1e3b Step 4/6 : RUN pip install -r requirements.txt ---> Running in fa1c714bf989 Collecting flask (from -r requirements.txt (line 1)) Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fece490c358>: Failed to establish a new connection: [Errno -3] Try again')': /simple/flask/ Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fece490c7b8>: Failed to establish a new connection: [Errno -3] Try again')': /simple/flask/ Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fece490c748>: Failed to establish a new connection: [Errno -2] Name does not resolve')': /simple/flask/ Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fece490c5c0>: Failed to establish a new connection: [Errno -3] Try again')': /simple/flask/ Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fece490c3c8>: Failed to establish a new connection: [Errno -2] Name does not resolve')': /simple/flask/ Could not find a version that satisfies the requirement flask (from -r requirements.txt (line 1)) (from versions: ) No matching distribution found for flask (from -r requirements.txt (line 1)) The command '/bin/sh -c pip install -r requirements.txt' returned a non-zero code: 1
How could i solve this error?
Kindly acknowledge ASAP. Why because again if i don't have enough resources, then i should extend my cloud instance for some more extra time.
Any help will be very much appreciable :)