File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -11,5 +11,5 @@ dotnet8-env-img: Dockerfile
1111 docker build --platform=$(PLATFORMS ) -t $(REPO ) /dotnet8-env:$(TAG ) -f $< .
1212
1313dotnet8-builder-img : builder/Dockerfile
14- @echo === Building image $(REPO ) /dotnet8-builder:$(TAG ) using context $(CURDIR ) /builder and dockerfile $<
15- docker build --platform=$(PLATFORMS ) -t $(REPO ) /dotnet8-builder:$(TAG ) -f $< builder/
14+ @echo === Building image $(REPO ) /dotnet8-builder:$(TAG ) using context $(CURDIR ) and dockerfile $<
15+ docker build --platform=$(PLATFORMS ) -t $(REPO ) /dotnet8-builder:$(TAG ) -f $< .
Original file line number Diff line number Diff line change @@ -5,4 +5,7 @@ PLATFORMS ?= linux/amd64,linux/arm64
55.PHONY : all
66all : dotnet8-builder-img
77
8- dotnet8-builder-img : Dockerfile
8+ # Override the rule to use parent directory as context
9+ dotnet8-builder-img : Dockerfile
10+ @echo === Building image $(REPO ) /dotnet8-builder:$(TAG ) using parent directory as context
11+ cd .. && docker buildx build --platform=$(PLATFORMS ) -t $(REPO ) /dotnet8-builder:$(TAG ) $(DOCKER_FLAGS ) -f builder/Dockerfile .
You can’t perform that action at this time.
0 commit comments