ADD file:48689786b7812032adc0d36643501f16ddee15750a8f0f8b614dba58e5037b2b 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:{}] |