1
0
mirror of https://github.com/docker/compose.git synced 2025-04-08 17:05:13 +02:00

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

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
Nicolas De Loof 2025-03-24 10:23:35 +01:00 committed by Guillaume Lours
parent b0badf1eb0
commit 0c5bd16da1

@ -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),