2 years ago
My build failed because I think during todays update probably my python version changed from python38 to python3 and the Pillow library was not combatible. I added a runtime.txt file and added the version python-3.8.12 and i also tried with python-3.9.12, but this is the error that i am getting
11 [stage-0 7/11] COPY . /app/.
11 DONE 0.1s
12 [stage-0 8/11] RUN --mount=type=cache,id=s/2b6eb8aa-7549-4fc0-9e87-89fd262315bc-/root/cache/pip,target=/root/.cache/pip python -m venv --copies /opt/venv && . /opt/venv/bin/activate && pip install -r requirements.txt
12 0.508 Error: '/opt/venv/bin/python' and '/opt/venv/bin/python' are the same file
12 ERROR: process "/bin/bash -ol pipefail -c python -m venv --copies /opt/venv && . /opt/venv/bin/activate && pip install -r requirements.txt" did not complete successfully: exit code: 1
[stage-0 8/11] RUN --mount=type=cache,id=s/2b6eb8aa-7549-4fc0-9e87-89fd262315bc-/root/cache/pip,target=/root/.cache/pip python -m venv --copies /opt/venv && . /opt/venv/bin/activate && pip install -r requirements.txt:
0.508 Error: '/opt/venv/bin/python' and '/opt/venv/bin/python' are the same file
Dockerfile:28
26 | ENV NIXPACKSPATH /opt/venv/bin:$NIXPACKSPATH
27 | COPY . /app/.
28 | >>> RUN --mount=type=cache,id=s/2b6eb8aa-7549-4fc0-9e87-89fd262315bc-/root/cache/pip,target=/root/.cache/pip python -m venv --copies /opt/venv && . /opt/venv/bin/activate && pip install -r requirements.txt
29 |
30 |
ERROR: failed to solve: process "/bin/bash -ol pipefail -c python -m venv --copies /opt/venv && . /opt/venv/bin/activate && pip install -r requirements.txt" did not complete successfully: exit code: 1
Error: Docker build failed
1 Replies