D
Dokploy2mo ago
joao

Not able to deploy Build Type Dockerfile

Im running into weird errors when trying to deploy an app with build type Dockerfile, it seems to have something to do with my config but I already try mutiple variations and nothing worked. Is there any specific thing I should do, or do we have any example with docker to compare with?
No description
No description
No description
No description
10 Replies
joao
joaoOP2mo ago
it seem to be a problem related with how docker parameters are handled by this function: "buildCustomDocker" at file "dokploy/packages/server/src/utils/builders/docker-file.ts" There is a hardcoded "." after dockerFilePath, but it shuold have the value inserted at "Docker Context Path".
No description
No description
joao
joaoOP2mo ago
@Siumauricio @Henrik can you help me out with this one?
Henrik
Henrik2mo ago
Build path is basically the same as doing cd before running whatever build type you have. So when you have landing-page as build path, the Docker file in build type should just be Dockerfile.
No description
No description
No description
joao
joaoOP2mo ago
any idea why this is not working then? I have exactly the same conf you posted. I can send you the full log if needed
Henrik
Henrik2mo ago
From your pictures you’ve set context path. I have not
joao
joaoOP2mo ago
it seems that this line should replace "." with the context path, what do you think?
No description
Henrik
Henrik2mo ago
Yeah it probably should
Siumauricio
Siumauricio2mo ago
The context is being passed as cwd in the spawn So when you specify a docker context it will positionate in the directory
Siumauricio
Siumauricio2mo ago
No description
joao
joaoOP2mo ago
Tks! I ended up uploading my images to dockerhub and using docker instead of github

Did you find this page helpful?