ソースを参照

fix: respect the passed in DockerfilePath (#3889)

jose-fully-ported 2 年 前
コミット
36e25d53c0
1 ファイル変更1 行追加1 行削除
  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)