diff --git a/Dockerfile b/Dockerfile index 75b780c..e35e07e 100755 --- a/Dockerfile +++ b/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"]