FROM registry.hub.docker.com/rclone/rclone AS rclone WORKDIR /out RUN cp $(which rclone) /out/rclone FROM registry.hub.docker.com/argoproj/argocd as argocd WORKDIR /out RUN cp $(which argocd) /out/argocd FROM registry.hub.docker.com/library/alpine RUN apk update --no-cache&&\ apk add yq gettext openssl curl jq perl git git-lfs\ buildah cni-plugins iptables ip6tables fuse-overlayfs --no-cache COPY --from=rclone /out/rclone /usr/bin/rclone COPY --from=argocd /out/argocd /usr/bin/argocd COPY ./scripts/ /usr/bin/