error resolving dockerfile

mendesfabioPRO

a year ago

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

0 Replies

mendesfabioPRO

a year 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


mendesfabioPRO

a year ago

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


mendesfabioPRO

a year 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


a year ago

if you push to github will the resulting build work?


mendesfabioPRO

a year ago

no


a year ago

do you have a root directory set?


mendesfabioPRO

a year ago

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

1252707130046283800


a year ago

and that directory has your Dockerfile right?


mendesfabioPRO

a year ago

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


a year ago

oh so you use nixpacks


mendesfabioPRO

a year ago

yup


mendesfabioPRO

a year ago

it seems disabling the new builder will fix it


mendesfabioPRO

a year ago

but we used the new builder without problem before


a year ago

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


mendesfabioPRO

a year ago

cool - thanks!


a year 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