| ADD alpine-minirootfs-3.22.1-x86_64.tar.gz / # buildkit |
| CMD ["/bin/sh"] |
| RUN /bin/sh -c apk --no-cache add ca-certificates dcron restic # buildkit |
| WORKDIR /root/ |
| COPY /usr/src/app/target/x86_64-unknown-linux-musl/release/nestando . # buildkit |
| RUN /bin/sh -c echo "0 */6 * * * /root/nestando >> /var/log/cron.log 2>&1" >> /etc/crontabs/root # buildkit |
| RUN /bin/sh -c chmod 0644 /etc/crontabs/root # buildkit |
| RUN /bin/sh -c touch /var/log/cron.log # buildkit |
| CMD ["sh" "-c" "crond && tail -f /var/log/cron.log"] |