forked from docker/borg-server
changes
This commit is contained in:
parent
6385a14acc
commit
b4e066f032
10
Dockerfile
10
Dockerfile
|
|
@ -1,7 +1,7 @@
|
|||
FROM alpine:latest
|
||||
MAINTAINER b3vis
|
||||
#Install Borg & SSH
|
||||
RUN apk add openssh sshfs borgbackup supervisor --no-cache
|
||||
RUN apk add shadow openssh sshfs borgbackup --no-cache
|
||||
RUN adduser -D -u 1000 borg && \
|
||||
ssh-keygen -A && \
|
||||
mkdir /backups && \
|
||||
|
|
@ -10,7 +10,9 @@ RUN adduser -D -u 1000 borg && \
|
|||
-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
|
||||
#COPY supervisord.conf /etc/supervisord.conf
|
||||
RUN usermod -p "*" borg
|
||||
#RUN passwd -u borg
|
||||
ADD ./entrypoint.sh /
|
||||
EXPOSE 22
|
||||
CMD ["/usr/bin/supervisord"]
|
||||
CMD ["/entrypoint.sh"]
|
||||
|
|
|
|||
Loading…
Reference in New Issue