Sign inSign up

halittiryaki/alpine-rsync

By halittiryaki

•Updated almost 2 years ago

multi arch amd64/arm64 alpine based scratch image for rsync

Image
Integration & delivery
Developer tools
0

462

halittiryaki/alpine-rsync repository overview

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

Tag summary

Content type

Image

Digest

sha256:288afe559…

Size

13.5 MB

Last updated

almost 2 years ago

docker pull halittiryaki/alpine-rsync