removing apt update (fixes #1) and condensing build steps to reduce layers

This commit is contained in:
Andrew Davidson 2019-05-17 21:54:26 -04:00
parent 76c253520f
commit 3ecf88c64e

View file

@ -1,13 +1,9 @@
FROM debian:stretch-slim FROM debian:stretch-slim
RUN apt-get update && \ RUN apt-get update && \
apt-get upgrade -y apt-get install -y openssh-server rsync borgbackup ca-certificates && \
RUN apt-get install -y openssh-server && \
mkdir -p /var/run/sshd 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/ 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 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