I’m trying to deploy a build for a python project but everything I try seems to get stuck retrying.
Logs:
The push refers to repository [registry.fly.io/qreate-langchain-gpt]
24e158951ac9: Pushed
31d7cd39e75b: Pushing [==================================================>] 5.069GB
95d3394dd0e1: Pushed
c7e9b6375c15: Pushed
5f70bf18a086: Layer already exists
c02c0144fc43: Layer already exists
5e07e61d0a25: Layer already exists
a5c3319da78f: Layer already exists
2340a4a0ba5f: Layer already exists
cb13d70db1d5: Layer already exists
91c84852684c: Layer already exists
aa49f6dcc88d: Layer already exists
79e8e9bff3d3: Layer already exists
de441de15f43: Layer already exists
d866f3828204: Layer already exists
5ef4a647ef52: Layer already exists
037f26f86912: Layer already exists
e67fb4bad8f4: Layer already exists
964529c819bb: Layer already exists
2f98f42985b1: Layer already exists
332b199f36eb: Layer already exists
Eventually one line will show retrying, will do a countdown then start over again on that same hash.
31d7cd39e75b: Retrying in 1 second
eventually it will show:
Error: failed to fetch an image or build from source: error rendering push status stream: received unexpected HTTP status: 502 Bad Gateway
I tried --remote-only
and --local-only
and both have the same result
Here is the dockerfile
FROM tiangolo/uvicorn-gunicorn:python3.11
WORKDIR /app
RUN apt-get update && apt-get upgrade -y && apt-get install -y \
gcc \
build-essential
COPY requirements.txt .
RUN pip3 install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 8080
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8080"]