forked from docker/borg-server
17 lines
583 B
Docker
Executable File
17 lines
583 B
Docker
Executable File
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"]
|