dockerfiles/webdav/Makefile

25 lines
430 B
Makefile
Raw Normal View History

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