Răsfoiți Sursa

fix: respect the passed in DockerfilePath (#3889)

jose-fully-ported 2 ani în urmă
părinte
comite
36e25d53c0
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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
 	// prepare Dockerfile if the location isn't inside the build context
-	dockerfileName := "Dockerfile"
+	dockerfileName := opts.DockerfilePath
 	if !opts.IsDockerfileInCtx {
 	if !opts.IsDockerfileInCtx {
 		var err error
 		var err error
 		dockerfileName, err = injectDockerfileIntoBuildContext(opts.BuildContext, opts.DockerfilePath)
 		dockerfileName, err = injectDockerfileIntoBuildContext(opts.BuildContext, opts.DockerfilePath)