chore: add image source label to dockerfiles (#553)

This commit is contained in:
Marc
2024-11-15 13:30:15 -08:00
committed by GitHub
parent 492beb2935
commit 0aedbfac34
2 changed files with 4 additions and 2 deletions
+1
View File
@@ -1,4 +1,5 @@
FROM alpine:latest
LABEL org.opencontainers.image.source="https://github.com/garethgeorge/backrest"
RUN apk --no-cache add tini ca-certificates curl bash rclone openssh tzdata docker-cli
RUN mkdir -p /tmp
COPY backrest /backrest
+3 -2
View File
@@ -5,7 +5,8 @@ COPY backrest /backrest
RUN /backrest --install-deps-only
RUN mkdir -p /bin && mv /root/.local/share/backrest/* /bin
FROM scratch
FROM scratch
LABEL org.opencontainers.image.source="https://github.com/garethgeorge/backrest"
COPY --from=alpine /tmp-orig /tmp
COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=alpine /bin /bin
@@ -13,4 +14,4 @@ COPY --from=alpine /sbin/tini-static /tini
COPY backrest /backrest
ENTRYPOINT ["/tini", "--"]
CMD ["/backrest", "--bind-address", ":9898"]
CMD ["/backrest", "--bind-address", ":9898"]