error resolving dockerfile
mendesfabio
PROOP

2 years ago

6038fab7-84cc-4d23-9a43-701e13ab1f5b

16 Replies

mendesfabio
PROOP

2 years ago

I'm finding weird that I deployed it 2 days ago and it worked fine. Now if I try to redeploy the exact same commit it just fails on build:

Error: error resolving dockerfile path: copying dockerfile: copying file: write /kaniko/Dockerfile: copyfilerange: is a directory


mendesfabio
PROOP

2 years ago

I'm not quite sure how to debug it either.


mendesfabio
PROOP

2 years ago

Full logs:

Error: error resolving dockerfile path: copying dockerfile: copying file: write /kaniko/Dockerfile: copyfilerange: is a directory

  --custom-platform string                    Specify the build platform if different from the current host

exit status 1


2 years ago

if you push to github will the resulting build work?


mendesfabio
PROOP

2 years ago

no


2 years ago

do you have a root directory set?


mendesfabio
PROOP

2 years ago

yea it's a monorepo but root is set to the specific app's folder

1252707130046283800


2 years ago

and that directory has your Dockerfile right?


mendesfabio
PROOP

2 years ago

there's no Dockerfile in our project 😅 I assumed this kaniko is yours


2 years ago

oh so you use nixpacks


mendesfabio
PROOP

2 years ago

yup


mendesfabio
PROOP

2 years ago

it seems disabling the new builder will fix it


mendesfabio
PROOP

2 years ago

but we used the new builder without problem before


2 years ago

i figured, thanks for reporting this, i will bring this info to the v2 builder's dev


mendesfabio
PROOP

2 years ago

cool - thanks!


2 years ago

for what its worth you can use the v2 builder for this, you just need to have your path prefixed with /
ive reported this to the dev and it will be fixed, but thats the work around in the mean time


Loading...