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
enter image description here
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 ?
1.4m articles
1.4m replys
5 comments
57.0k users