Hi there! I just tried to deploy a new Docker app to the app plattform and keep getting a strange error while attempting to run a simple
No cached layer found for cmd RUN apk update [2021-12-06 10:17:58] error building image: error building stage: failed to optimize instructions: read /proc/1/mem: input/output error [2021-12-06 10:17:58] [2021-12-06 10:17:58] command exited with code 1 [2021-12-06 10:17:58] du: /proc/203: No such file or directory [2021-12-06 10:17:59] ! Build failed (exit code 1)
Building locally works just fine and I’m using the same Dockerfile with other projects where it works without a complaint.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
I figured my issue out in the end. Even though the deployment failed at the first
RUNcommand the actual issue was further down.
COPY .. /app/statement tries to access a directory outside of my project and that’s what made the whole build fail. I changed it to
COPY . /app/and everything worked.
Hi There, What droplet are you using in DO ?
Also, can you put the Dockerfile or docker-compose file here ?