Commit 6408518 1 parent be09303 commit 6408518 Copy full SHA for 6408518
File tree 2 files changed +12
-9
lines changed
2 files changed +12
-9
lines changed Original file line number Diff line number Diff line change 1
1
FROM alpine:latest
2
- RUN apk --no-cache add ca-certificates curl bash rclone openssh tzdata
2
+ RUN apk --no-cache add tini ca-certificates curl bash rclone openssh tzdata
3
3
RUN mkdir -p /tmp
4
4
COPY backrest /backrest
5
5
RUN /backrest --install-deps-only
6
6
RUN mkdir -p /bin && mv /root/.local/share/backrest/* /bin
7
7
8
- ENTRYPOINT ["/backrest "]
9
- RUN /backrest --install-deps-only
8
+ ENTRYPOINT ["/sbin/tini", "-- "]
9
+ CMD [" /backrest"]
Original file line number Diff line number Diff line change 1
- FROM golang:alpine as gobuild
1
+ FROM alpine:latest AS alpine
2
+ RUN apk add --no-cache ca-certificates tini-static
2
3
RUN mkdir /tmp-orig
3
4
COPY backrest /backrest
4
5
RUN /backrest --install-deps-only
5
6
RUN mkdir -p /bin && mv /root/.local/share/backrest/* /bin
6
7
7
8
FROM scratch
8
- COPY --from=gobuild /tmp-orig /tmp
9
- COPY --from=gobuild /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
10
- COPY --from=gobuild /bin /bin
9
+ COPY --from=alpine /tmp-orig /tmp
10
+ COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
11
+ COPY --from=alpine /bin /bin
12
+ COPY --from=alpine /sbin/tini-static /tini
13
+ COPY backrest /backrest
11
14
12
- ENTRYPOINT ["/backrest "]
13
- COPY backrest /backrest
15
+ ENTRYPOINT ["/tini", "-- "]
16
+ CMD [" /backrest"]
You can’t perform that action at this time.
0 commit comments