Add: Clone git repo with SSH public keys into SSH_KEY_DIR

This commit is contained in:
nold 2019-07-05 13:57:35 +02:00
parent a741486bb3
commit 4325a3d964
3 changed files with 21 additions and 8 deletions

View file

@ -13,7 +13,7 @@ VOLUME /backup
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get -y --no-install-recommends install \
borgbackup openssh-server && apt-get clean && \
borgbackup openssh-server git ca-certificates && apt-get clean && \
useradd -s /bin/bash -m borg && \
mkdir /home/borg/.ssh && \
chmod 700 /home/borg/.ssh && \