Przeglądaj źródła

fix: respect the passed in DockerfilePath (#3889)

jose-fully-ported 2 lat temu
rodzic
commit
36e25d53c0
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      cli/cmd/docker/builder.go

+ 1 - 1
cli/cmd/docker/builder.go

@@ -183,7 +183,7 @@ func buildLocalWithBuildkit(ctx context.Context, opts BuildOpts) error {
 	}
 
 	// prepare Dockerfile if the location isn't inside the build context
-	dockerfileName := "Dockerfile"
+	dockerfileName := opts.DockerfilePath
 	if !opts.IsDockerfileInCtx {
 		var err error
 		dockerfileName, err = injectDockerfileIntoBuildContext(opts.BuildContext, opts.DockerfilePath)