Docker build failed / Django

maxi117HOBBY

7 months ago

Hi, I have a problem with the build image. I think it's the Docker configuration on the server. According to the following error message:

#12 [stage-0  8/11] RUN --mount=type=cache,id=s/b6fadd1f-a770-4253-96d6-ddbe117d5445-/root/cache/pip,target=/root/.cache/pip python -m venv --copies /opt/venv && . /opt/venv/bin/activate && pip install -r requirements.txt

#12 0.143 Error: [Errno 26] Text file busy: '/opt/venv/bin/python'

 

#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/b6fadd1f-a770-4253-96d6-ddbe117d5445-/root/cache/pip,target=/root/.cache/pip python -m venv --copies /opt/venv && . /opt/venv/bin/activate && pip install -r requirements.txt:

0.143 Error: [Errno 26] Text file busy: '/opt/venv/bin/python'

-----

 

Dockerfile:28

-------------------

26 |     ENV NIXPACKS_PATH=/opt/venv/bin:$NIXPACKS_PATH

27 |     COPY . /app/.


Funciona perfectamente, pero de un momento a otro dejó de funcionar. Intenté volver a confirmaciones anteriores, verifiqué mi código y no encontre nada extraño.

0 Replies