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?




10 Replies
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".


@Siumauricio @Henrik can you help me out with this one?
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.


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
From your pictures you’ve set context path. I have not
it seems that this line should replace "." with the context path, what do you think?

Yeah it probably should
The context is being passed as cwd in the spawn
So when you specify a docker context it will positionate in the directory

Tks! I ended up uploading my images to dockerhub and using docker instead of github