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:
parent
1f7b7a02b1
commit
a83999d6ed
|
@ -10,6 +10,7 @@ all:
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f syndicate-server.*
|
rm -f syndicate-server.*
|
||||||
|
rm -rf $(patsubst %,target.%,$(ARCHITECTURES))
|
||||||
-podman images -q $(U)/$(I) | sort -u | xargs podman rmi -f
|
-podman images -q $(U)/$(I) | sort -u | xargs podman rmi -f
|
||||||
|
|
||||||
image: $(SERVERS)
|
image: $(SERVERS)
|
||||||
|
@ -33,5 +34,5 @@ push-only:
|
||||||
podman manifest push $(U)/$(I):latest
|
podman manifest push $(U)/$(I):latest
|
||||||
|
|
||||||
syndicate-server.%:
|
syndicate-server.%:
|
||||||
make -C .. $$(./alpine-architecture $*)-binary-release
|
make -C .. CARGO_TARGET_DIR=docker/target.$* $$(./alpine-architecture $*)-binary-release
|
||||||
cp -a ../target/$$(./alpine-architecture $*)-unknown-linux-musl*/release/syndicate-server $@
|
cp -a target.$*/$$(./alpine-architecture $*)-unknown-linux-musl*/release/syndicate-server $@
|
||||||
|
|
Loading…
Reference in New Issue