diff --git a/rsyncd/Dockerfile b/rsyncd/Dockerfile new file mode 100644 index 0000000..bd9ef73 --- /dev/null +++ b/rsyncd/Dockerfile @@ -0,0 +1,5 @@ +FROM alpine:3.16 + +RUN apk add --no-cache rsync + +CMD ["/usr/bin/rsync", "--daemon", "--no-detach", "--config", "/etc/rsyncd.conf"] diff --git a/rsyncd/Makefile b/rsyncd/Makefile new file mode 100644 index 0000000..3419c97 --- /dev/null +++ b/rsyncd/Makefile @@ -0,0 +1,19 @@ +IMG_NAME=rsyncd +REGISTRY=registry.monotremata.xyz +IMG=$(REGISTRY)/$(IMG_NAME) +PLATFORMS=linux/amd64,linux/arm64 + +.PHONY: build push buildx + +build: Dockerfile + docker build -t $(IMG) . + +push: build + docker image push $(IMG) + +buildx: Dockerfile + docker buildx build \ + --platform $(PLATFORMS) \ + --tag $(IMG) \ + --push \ + .