Skip to content

Commit 0c5bd16

Browse files
ndeloofglours
authored andcommitted
bake parses "${}" in DockerfileInline as a variable
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
1 parent b0badf1 commit 0c5bd16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/compose/build_bake.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ func (s *composeService) doBuildBake(ctx context.Context, project *types.Project
191191
Context: build.Context,
192192
Contexts: additionalContexts(build.AdditionalContexts),
193193
Dockerfile: dockerFilePath(build.Context, build.Dockerfile),
194-
DockerfileInline: build.DockerfileInline,
194+
DockerfileInline: strings.ReplaceAll(build.DockerfileInline, "${", "$${"),
195195
Args: args,
196196
Labels: build.Labels,
197197
Tags: append(build.Tags, image),

0 commit comments

Comments
 (0)