build error (wrong path)
Hi,
I think there is a bug in the building pipeline.
I have set "Dockerpath" to "xx/yy/Dockerfile" in my serverless config.
But when building i got an error:
But the path of "start.sh" is "xx/yy/start.sh".
I think the building command on your side don't go in the directory of the Dockerfile and just "docker build ./xx/yy/Dockerfile".
So files are not in root folder
4 Replies
@0xBowgartField (m/acc)
Escalated To Zendesk
The thread has been escalated to Zendesk!
Ticket ID: #17009
It's relative to the repo being cloned, unless I misunderstand the issue.
no this is not a repo issue
my repo as other file inside, the next.js app
you are giving the option to pass a custom path for the Dockerfile
it should also have the option to give a custom content âth for docker building
Suppose your dir:
1. Put the Dockerfile in the root of the repo and build with the repo root as the context.
- Example:
- Then in the Dockerfile, you use relative paths like
- Example:
- Then in the Dockerfile (in xx/yy), you can do
- Example:
- Then in the Dockerfile, you use relative paths like
COPY xx/yy/start.sh /src/start.sh
2. Put the Dockerfile in some subfolder (e.g. xx/yy/), and set that subfolder as the build context.- Example:
- Then in the Dockerfile (in xx/yy), you can do
COPY start.sh /app/start.sh
is second command option to pass with -f and the context path here is what you mean?