Closed bpmooch closed 10 months ago
I figured out the solution for this creating a tarball with the Dockerfile inside and using that as docker context for the build.
Yeah, that's the correct way to upload a Dockerfile with the HTTP API... There is a more advanced mechanism using the new buildkit features and a GRPC interface, but I've yet to make an example / test case to show it works.
https://github.com/fussybeaver/bollard/blob/master/examples/build.rs
I am attempting to build an image using a local dockerfile:
I get an error from this code saying
DockerResponseServerError { status_code: 500, message: "Cannot locate spec ified Dockerfile: /Users/mooch/p/sra/sherpa/api/resources/dockerfiles/Dockerfile.minio" }
but I am sure the file is in the correct place. I noticed in the example, a remote file is used. Is there something I'm missing about building a docker image from a local dockerfile?