| ADD alpine-minirootfs-3.23.3-aarch64.tar.gz / # buildkit |
| CMD ["/bin/sh"] |
| RUN /bin/sh -c apk add --no-cache bash curl docker-cli restic redis mongodb-tools sqlite tar gzip dcron findutils tzdata libpq lz4-libs zstd-libs && mkdir -p /backup-scripts /backups /var/log # buildkit |
| COPY /usr/libexec/postgresql16/ /usr/libexec/postgresql16/ # buildkit |
| COPY /usr/libexec/postgresql17/ /usr/libexec/postgresql17/ # buildkit |
| COPY /usr/libexec/postgresql18/ /usr/libexec/postgresql18/ # buildkit |
| RUN /bin/sh -c ln -sf /usr/libexec/postgresql16/pg_dump /usr/local/bin/pg_dump16 && ln -sf /usr/libexec/postgresql16/pg_restore /usr/local/bin/pg_restore16 && ln -sf /usr/libexec/postgresql16/psql /usr/local/bin/psql16 && ln -sf /usr/libexec/postgresql17/pg_dump /usr/local/bin/pg_dump17 && ln -sf /usr/libexec/postgresql17/pg_restore /usr/local/bin/pg_restore17 && ln -sf /usr/libexec/postgresql17/psql /usr/local/bin/psql17 && ln -sf /usr/libexec/postgresql18/pg_dump /usr/local/bin/pg_dump18 && ln -sf /usr/libexec/postgresql18/pg_restore /usr/local/bin/pg_restore18 && ln -sf /usr/libexec/postgresql18/psql /usr/local/bin/psql18 && ln -sf /usr/local/bin/pg_dump17 /usr/local/bin/pg_dump && ln -sf /usr/local/bin/pg_restore17 /usr/local/bin/pg_restore && ln -sf /usr/local/bin/psql17 /usr/local/bin/psql # buildkit |
| COPY scripts/* /backup-scripts/ # buildkit |
| RUN /bin/sh -c chmod +x /backup-scripts/*.sh # buildkit |
| WORKDIR /backups |
| ENTRYPOINT ["/backup-scripts/entrypoint.sh"] |