Buildkit: Add documentation (/support?) changing dockerfile name with dockerfile frontend

Created on 6 Dec 2019  路  2Comments  路  Source: moby/buildkit

I fail to use a differently-named dockerfile (other.dockerfile), I tried different flags from reading the code, but all attempts failed:

Command:

buildctl-daemonless.sh build --progress=plain \
      --frontend=dockerfile.v0 ...

--local dockerfile=. --local filename=other.dockerfile
-> error: other.dockerfile not a directory

--local dockerfile=other.dockerfile
-> error: other.dockerfile not a directory

--local dockerfile=. --local dockerfilekey=other.dockerfile
-> error: other.dockerfile not a directory

--local dockerfile=. --local defaultDockerfileName=other.dockerfile
-> error: other.dockerfile not a directory

Using moby/buildkit:latest - buildctl github.com/moby/buildkit v0.6.3 928f3b480d7460aacb401f68610058ffdb549aca

aredocs question

Most helpful comment

--opt filename=other.dockerfile

All 2 comments

--opt filename=other.dockerfile

Was this page helpful?
0 / 5 - 0 ratings