D
Dokploy4mo ago
Manel

failed to solve: failed to read dockerfile

When I try deploy my docker app I got this
Initializing deployment
Build dockerfile: ✅
Source Type: github: ✅
#0 building with "default" instance using docker driver

#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile: 2B done
#1 DONE 0.0s
ERROR: failed to solve: failed to read dockerfile: open Dockerfile: no such file or directory
Error ❌
#0 building with "default" instance using docker driver

#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile: 2B done
#1 DONE 0.0s
ERROR: failed to solve: failed to read dockerfile: open Dockerfile: no such file or directory
Initializing deployment
Build dockerfile: ✅
Source Type: github: ✅
#0 building with "default" instance using docker driver

#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile: 2B done
#1 DONE 0.0s
ERROR: failed to solve: failed to read dockerfile: open Dockerfile: no such file or directory
Error ❌
#0 building with "default" instance using docker driver

#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile: 2B done
#1 DONE 0.0s
ERROR: failed to solve: failed to read dockerfile: open Dockerfile: no such file or directory
But The dockerfile is in the root of the repo, another project with same place of dockerfile work normal
2 Replies
Siumauricio
Siumauricio4mo ago
GitHub
my private git error failed to solve: failed to read Dockerfile · ...
I am getting the following error when starting the deployment: ERROR: failed to solve: failed to read Dockerfile: open /var/lib/docker/tmp/buildkit-mount2453544518/DockerFile: no such file or direc...
Manel
ManelOP4mo ago
yeah same problem, the build path and Dockerfile is equal your example (that works), oh a tried remove the stage made only one (more heavy image) and works the problem in this case is the stages when I make just one stage works or when I name the prod stage and set this in "Docker build Stage" works as well

Did you find this page helpful?