Initital Commit

This commit is contained in:
nold 2017-10-19 19:41:41 +02:00
commit e0b47ab989
3 changed files with 96 additions and 0 deletions

24
Dockerfile Normal file
View file

@ -0,0 +1,24 @@
############################################################
# Dockerfile to build borgbackup server images
# Based on Debian
############################################################
FROM debian:latest
# Volume for SSH-Keys
VOLUME /sshkeys
# Volume for borg repositories
VOLUME /backup
RUN apt-get update && apt-get -y install borgbackup openssh-server
RUN useradd -s /bin/bash -m borg
RUN mkdir /home/borg/.ssh && chmod 700 /home/borg/.ssh && chown borg: /home/borg/.ssh
RUN mkdir /run/sshd
COPY ./data/run.sh /run.sh
COPY ./data/sshd_config /etc/ssh/sshd_config
CMD /bin/bash -x /run.sh
# Default SSH-Port for clients
EXPOSE 22