multi arch amd64/arm64 alpine based scratch image for rsync
462
FROM --platform=$BUILDPLATFORM alpine:latest AS builder
RUN apk add --no-cache rsync coreutils
RUN mkdir -p /deps
&& cp /usr/bin/rsync /deps/ && cp /bin/sleep /deps/
&& ldd /usr/bin/rsync | awk '{print $3}' | grep -v '^$' | xargs -I '{}' cp '{}' /deps/
&& ldd /bin/sleep | awk '{print $3}' | grep -v '^$' | xargs -I '{}' cp '{}' /deps/
FROM scratch
COPY --from=builder /deps/rsync /bin/rsync COPY --from=builder /deps/sleep /bin/sleep
COPY --from=builder /deps/ /lib/ COPY --from=builder /deps/ /usr/lib/
ENV LD_LIBRARY_PATH=/lib:/usr/lib
CMD ["/bin/sleep", "infinity"]
Content type
Image
Digest
sha256:288afe559…
Size
13.5 MB
Last updated
almost 2 years ago
docker pull halittiryaki/alpine-rsync