From 3ecf88c64e4a93d0fb99fe5bd51bc94a5edce3e9 Mon Sep 17 00:00:00 2001 From: Andrew Davidson Date: Fri, 17 May 2019 21:54:26 -0400 Subject: [PATCH] removing apt update (fixes #1) and condensing build steps to reduce layers --- Dockerfile | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9a7818d..5721174 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,9 @@ FROM debian:stretch-slim RUN apt-get update && \ - apt-get upgrade -y - -RUN apt-get install -y openssh-server && \ + apt-get install -y openssh-server rsync borgbackup ca-certificates && \ mkdir -p /var/run/sshd -RUN apt-get install -y rsync borgbackup ca-certificates - ADD https://github.com/restic/restic/releases/download/v0.9.4/restic_0.9.4_linux_amd64.bz2 /tmp/ RUN bunzip2 /tmp/restic_0.9.4_linux_amd64.bz2 && mv /tmp/restic_0.9.4_linux_amd64 /usr/local/bin/restic && chmod +x /usr/local/bin/restic