rsyncd image

main
Ricard Illa 2022-09-16 11:00:50 +02:00
parent 3f98947d29
commit 52991f937a
No known key found for this signature in database
GPG Key ID: F69A672B72E54902
2 changed files with 24 additions and 0 deletions

5
rsyncd/Dockerfile Normal file
View File

@ -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"]

19
rsyncd/Makefile Normal file
View File

@ -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 \
.