| ADD alpine-minirootfs-3.23.4-x86_64.tar.gz / # buildkit |
| CMD ["/bin/sh"] |
| ENV USER=borg |
| ENV UID=1000 |
| ENV GID=1000 |
| ENV MAINTENANCE_ENABLE=false |
| ENV INTERACTIVE_MODE=false |
| ENV RUN_INSTALL_SCRIPT=false |
| ENV RUN_PROMETHEUS_EXPORTER=false |
| ENV TZ= |
| RUN /bin/sh -c apk add --no-cache bash sudo openssh-server shadow tzdata curl git dcron coreutils grep sed gawk util-linux ca-certificates tmux fastfetch prometheus-node-exporter borgbackup docker-cli && mkdir -p /.ssh /backups /logs /run/sshd /root/.cache/crontab /sshkeys/clients /sshkeys/host # buildkit |
| VOLUME [/backups] |
| VOLUME [/logs] |
| VOLUME [/sshkeys/host] |
| COPY entrypoint-script/entrypoint.sh / # buildkit |
| COPY entrypoint-script/variables.sh / # buildkit |
| COPY scripts/borgbackup.sh /usr/local/bin/ # buildkit |
| COPY prometheus-borg-exporter/borg_exporter.sh /usr/local/bin/ # buildkit |
| COPY prometheus-borg-exporter/borg_exporter.rc /etc/ # buildkit |
| COPY bash-config/.bash_profile /root/ # buildkit |
| COPY bash-config/.bashrc_root /root/ # buildkit |
| COPY bash-config/.bash_profile / # buildkit |
| COPY bash-config/.bashrc / # buildkit |
| COPY sshd_config /etc/ssh/sshd_config # buildkit |
| RUN /bin/sh -c chmod 0755 /entrypoint.sh /usr/local/bin/borgbackup.sh /usr/local/bin/borg_exporter.sh # buildkit |
| EXPOSE [22/tcp] |
| ENTRYPOINT ["/entrypoint.sh"] |