This commit is contained in:
Miłosz Stocki 2020-03-04 20:59:44 +01:00
parent 6385a14acc
commit b4e066f032
Signed by: osiu97
GPG Key ID: E3D1D83FA04F51D6
1 changed files with 6 additions and 4 deletions

View File

@ -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"]