1
0

image: use jdupes

deduplicate data if possible
This commit is contained in:
Konstantin Demin 2024-10-10 00:23:55 +03:00
parent ff3564b0db
commit 9ff0ff517d
Signed by: krd
GPG Key ID: 4D56F87A8BA65FD0
3 changed files with 7 additions and 3 deletions

View File

@ -196,7 +196,8 @@ RUN apt-install-angie-mod.sh \
zip \ zip \
zstd \ zstd \
; \ ; \
apt-clean.sh apt-clean.sh ; \
jdupes -1LSpr /usr/
## adjust permissions/ownership ## adjust permissions/ownership
RUN d='/etc/angie' ; \ RUN d='/etc/angie' ; \

View File

@ -54,6 +54,7 @@ RUN apt-env.sh apt-get update ; \
apt-env.sh apt-get upgrade -y ; \ apt-env.sh apt-get upgrade -y ; \
apt-install.sh \ apt-install.sh \
cron \ cron \
jdupes \
logrotate \ logrotate \
netbase \ netbase \
openssl \ openssl \
@ -242,7 +243,8 @@ RUN certifi_pem="${PYTHON_SITE_PACKAGES}/pip/_vendor/certifi/cacert.pem" ; \
RUN find /usr/local/sbin/ ! -type d -ls -delete ; \ RUN find /usr/local/sbin/ ! -type d -ls -delete ; \
find /run/ -mindepth 1 -ls -delete || : ; \ find /run/ -mindepth 1 -ls -delete || : ; \
install -d -m 01777 /run/lock install -d -m 01777 /run/lock ; \
jdupes -1LSpr /usr/
## --- ## ---

View File

@ -86,4 +86,5 @@ RUN apt-install.sh \
; \ ; \
apt-clean.sh apt-clean.sh
RUN find /usr/local/sbin/ ! -type d -ls -delete RUN find /usr/local/sbin/ ! -type d -ls -delete ; \
jdupes -1LSpr /usr/