ADD file:70e4f0c71f88c97c8db279b998c10d4943954d304ff9f51875c3699a4dc5ee4e 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:{}] |