mirror of
https://github.com/garethgeorge/backrest.git
synced 2026-08-25 10:26:35 +00:00
chore: add image source label to dockerfiles (#553)
This commit is contained in:
@@ -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
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user