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 apk update
:
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.
Any ideas?
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.
Sign up for Infrastructure as a Newsletter.
Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
I figured my issue out in the end. Even though the deployment failed at the first
RUN
command the actual issue was further down.The
COPY .. /app/
statement tries to access a directory outside of my project and that’s what made the whole build fail. I changed it toCOPY . /app/
and everything worked.Hi There, What droplet are you using in DO ?
Also, can you put the Dockerfile or docker-compose file here ?
BR