dockerfiles/mpd/Makefile

25 lines
393 B
Makefile
Raw Normal View History

2022-03-07 16:56:50 +01:00
IMG_NAME = mpd
REGISTRY=registry.monotremata.xyz
IMG=$(REGISTRY)/$(IMG_NAME)
2022-08-16 13:07:00 +02:00
PLATFORMS=linux/arm64
2022-03-07 16:56:50 +01:00
.PHONY: push buildx clean
2022-03-07 16:56:50 +01:00
out/image-id: Dockerfile
mkdir -p $(@D)
2022-03-07 16:56:50 +01:00
docker build -t $(IMG) .
echo $(IMG) > $@
2022-03-07 16:56:50 +01:00
push: out/image-id
2022-08-16 13:07:00 +02:00
docker image push $(IMG)
2022-03-07 16:56:50 +01:00
buildx: Dockerfile
docker buildx build \
--platform $(PLATFORMS) \
--tag $(IMG) \
--push \
.
clean:
rm -rf out