Build each docker image with a separate target directory, because it turns out they seem to pollute each other if they all share one!

This commit is contained in:
Tony Garnock-Jones 2023-10-05 09:53:53 +02:00
parent 1f7b7a02b1
commit a83999d6ed
1 changed files with 3 additions and 2 deletions

View File

@ -10,6 +10,7 @@ all:
clean:
rm -f syndicate-server.*
rm -rf $(patsubst %,target.%,$(ARCHITECTURES))
-podman images -q $(U)/$(I) | sort -u | xargs podman rmi -f
image: $(SERVERS)
@ -33,5 +34,5 @@ push-only:
podman manifest push $(U)/$(I):latest
syndicate-server.%:
make -C .. $$(./alpine-architecture $*)-binary-release
cp -a ../target/$$(./alpine-architecture $*)-unknown-linux-musl*/release/syndicate-server $@
make -C .. CARGO_TARGET_DIR=docker/target.$* $$(./alpine-architecture $*)-binary-release
cp -a target.$*/$$(./alpine-architecture $*)-unknown-linux-musl*/release/syndicate-server $@