Skip to content

Commit

Permalink
Pin version and add dependencies
Browse files Browse the repository at this point in the history
- pin version of base image 
- add fuse 
- add openssh-client
  • Loading branch information
niondir authored Jul 18, 2019
1 parent 683db32 commit 7ed9080
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
FROM alpine as certs
FROM alpine:3.10.1 as build
RUN apk add --no-cache ca-certificates

# Get restic executable
ENV RESTIC_VERSION=0.9.5
ADD https://github.com/restic/restic/releases/download/v${RESTIC_VERSION}/restic_${RESTIC_VERSION}_linux_amd64.bz2 /
RUN bzip2 -d restic_${RESTIC_VERSION}_linux_amd64.bz2 && mv restic_${RESTIC_VERSION}_linux_amd64 /bin/restic && chmod +x /bin/restic

FROM busybox:glibc
FROM alpine:3.10.1

COPY --from=certs /etc/ssl/certs /etc/ssl/certs
COPY --from=certs /bin/restic /bin/restic
COPY --from=build /etc/ssl/certs /etc/ssl/certs
COPY --from=build /bin/restic /bin/restic

RUN apk add --update --no-cache fuse openssh-client

RUN \
mkdir -p /mnt/restic /var/spool/cron/crontabs /var/log; \
Expand All @@ -34,4 +36,4 @@ COPY entry.sh /entry.sh
WORKDIR "/"

ENTRYPOINT ["/entry.sh"]
CMD ["tail","-fn0","/var/log/cron.log"]
CMD ["tail","-fn0","/var/log/cron.log"]

0 comments on commit 7ed9080

Please sign in to comment.