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:
Executable
+16
@@ -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"]
|
||||
Reference in New Issue
Block a user