My simple Docker file in my Next.js project.
And start with this command >> docker build -f Dockerfile -t project-name . & docker build --tag project-name
But an error occurs like this picture when npm run build.
The important thing is not used "sharp" in my project.
Anyway I rebuild to docker when after install "sharp".
But Also error occurs when npm run install.
How can I build in docker Next.js project ?
question from:https://stackoverflow.com/questions/66055923/an-error-occurs-when-npm-run-build-with-docker