1
0
mirror of https://www.github.com/b3vis/borg-server synced 2026-08-05 16:12:46 +02:00

Initial Commit

This commit is contained in:
b3vis
2016-08-15 09:43:31 +01:00
commit ec5d05b44c
3 changed files with 70 additions and 0 deletions
Executable
+16
View File
@@ -0,0 +1,16 @@
FROM alpine:latest
MAINTAINER b3vis
#Install Borg & SSH
RUN apk add openssh sshfs borgbackup supervisor --no-cache --repository http://dl-3.alpinelinux.org/alpine/edge/testing/
RUN adduser -D -u 1000 borg && \
ssh-keygen -A && \
mkdir /backups && \
chown borg.borg /backups && \
sed -i \
-e 's/^#PasswordAuthentication yes$/PasswordAuthentication no/g' \
-e 's/^PermitRootLogin without-password$/PermitRootLogin no/g' \
/etc/ssh/sshd_config
COPY supervisord.conf /etc/supervisord.conf
RUN passwd -u borg
EXPOSE 22
CMD ["/usr/bin/supervisord"]