Browse Source

bake parses "${}" in DockerfileInline as a variable

Signed-off-by: Nicolas De Loof <[email protected]>
Nicolas De Loof 8 months ago
parent
commit
0c5bd16da1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pkg/compose/build_bake.go

+ 1 - 1
pkg/compose/build_bake.go

@@ -191,7 +191,7 @@ func (s *composeService) doBuildBake(ctx context.Context, project *types.Project
 			Context:          build.Context,
 			Contexts:         additionalContexts(build.AdditionalContexts),
 			Dockerfile:       dockerFilePath(build.Context, build.Dockerfile),
-			DockerfileInline: build.DockerfileInline,
+			DockerfileInline: strings.ReplaceAll(build.DockerfileInline, "${", "$${"),
 			Args:             args,
 			Labels:           build.Labels,
 			Tags:             append(build.Tags, image),