chore: refactor Dockerfile a little
All checks were successful
continuous-integration/drone/push Build is passing

* add description and vendor strings as per org.label-schema
* separate instructions into multiple RUN steps
This commit is contained in:
surtur 2021-01-20 10:18:47 +01:00
parent 57b4f9585f
commit b50a08f4c8
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

@ -8,8 +8,11 @@ LABEL description="Alpine-based image containing simply rsync"
LABEL org.label-schema.build-date=$BUILD_DATE \ LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.vcs-url="https://github.com/wULLSnpAXbWZGYDYyhWTKKspEQoaYxXyhoisqHf/docker-alpine-rsync.git" \ org.label-schema.vcs-url="https://github.com/wULLSnpAXbWZGYDYyhWTKKspEQoaYxXyhoisqHf/docker-alpine-rsync.git" \
org.label-schema.vcs-ref=$VCS_REF \ org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.license=GPL-3.0 org.label-schema.license=GPL-3.0 \
org.label-schema.description="Alpine-based image containing simply rsync" \
org.label-schema.vendor="wanderer <wanderer at git.dotya.ml>"
RUN apk update && apk -U upgrade --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing RUN apk update \
RUN apk add --no-cache ca-certificates rsync openssh-client sshpass --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing && \ && apk -U upgrade --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing
rm -rf /var/cache/apk/* RUN apk add --no-cache ca-certificates rsync openssh-client sshpass --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing
RUN rm -rf /var/cache/apk/*