ADD file:9deb26e1dbc258df47629e6f8fbcea4e4b54e7673537cc925db16af858d9cc8d in / |
CMD ["bash"] |
VOLUME [/sshkeys] |
VOLUME [/backup] |
ENV DEBIAN_FRONTEND=noninteractive |
RUN /bin/sh -c apt-get update && apt-get -y --no-install-recommends install borgbackup openssh-server && apt-get clean && useradd -s /bin/bash -m -U borg && mkdir /home/borg/.ssh && chmod 700 /home/borg/.ssh && chown borg:borg /home/borg/.ssh && mkdir /run/sshd && rm -f /etc/ssh/ssh_host*key* && rm -rf /var/lib/apt/lists/* /var/tmp/* /tmp/* # buildkit |
COPY ./data/run.sh /run.sh # buildkit |
COPY ./data/sshd_config /etc/ssh/sshd_config # buildkit |
ENTRYPOINT ["/bin/sh" "-c" "/run.sh"] |
EXPOSE map[22/tcp:{}] |