[Feature] Remove duplicate database dumps to save storage space ()

* Replace gzip with deterministic bzip2 compression

* Exclude comments from SQL dump

* Add option to remove duplicates using fdupes

* Revert change to bzip2 as gzip can be deterministic using no-name parameter
This commit is contained in:
Tobias Janke 2024-12-08 11:12:39 +01:00 committed by GitHub
parent 8a403d725b
commit 823343381d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 10 additions and 3 deletions

View file

@ -21,7 +21,8 @@ RUN apk add --update \
mysql-client \
gzip \
openssl \
mariadb-connector-c && \
mariadb-connector-c \
fdupes && \
rm -rf /var/cache/apk/*
COPY --from=binary /go/bin/dockerize /usr/local/bin