Skip to content

Commit ded3fa4

Browse files
committed
remove locale optimizations and use stock slim dpkg rules
1 parent 9f91120 commit ded3fa4

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

Dockerfile

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@ RUN \
2323
tar xf \
2424
/rootfs.tar.gz -C \
2525
/root-out && \
26-
echo "path-exclude=/usr/share/man/*" > /root-out/etc/dpkg/dpkg.cfg.d/excludes && \
27-
echo "path-exclude=/usr/share/locale/*/LC_MESSAGES/*.mo" >> /root-out/etc/dpkg/dpkg.cfg.d/excludes && \
28-
echo "path-exclude=/usr/share/doc/*" >> /root-out/etc/dpkg/dpkg.cfg.d/excludes && \
29-
echo "path-include=/usr/share/doc/*/copyright" >> /root-out/etc/dpkg/dpkg.cfg.d/excludes && \
3026
rm -rf \
3127
/root-out/var/log/*
3228

@@ -122,10 +118,6 @@ RUN \
122118
echo "deb-src http://security.debian.org/debian-security/ bullseye-security main contrib non-free" >> /etc/apt/sources.list && \
123119
echo "**** generate locale ****" && \
124120
locale-gen en_US.UTF-8 && \
125-
rm -Rf /usr/share/locale && \
126-
mv /usr/share/i18n/locales/en_US /tmp/ && \
127-
rm -Rf /usr/share/i18n/locales/* && \
128-
mv /tmp/en_US /usr/share/i18n/locales/ && \
129121
echo "**** create abc user and make our folders ****" && \
130122
useradd -u 911 -U -d /config -s /bin/false abc && \
131123
usermod -G users abc && \

Dockerfile.aarch64

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@ RUN \
2323
tar xf \
2424
/rootfs.tar.gz -C \
2525
/root-out && \
26-
echo "path-exclude=/usr/share/man/*" > /root-out/etc/dpkg/dpkg.cfg.d/excludes && \
27-
echo "path-exclude=/usr/share/locale/*/LC_MESSAGES/*.mo" >> /root-out/etc/dpkg/dpkg.cfg.d/excludes && \
28-
echo "path-exclude=/usr/share/doc/*" >> /root-out/etc/dpkg/dpkg.cfg.d/excludes && \
29-
echo "path-include=/usr/share/doc/*/copyright" >> /root-out/etc/dpkg/dpkg.cfg.d/excludes && \
3026
rm -rf \
3127
/root-out/var/log/*
3228

@@ -122,10 +118,6 @@ RUN \
122118
echo "deb-src http://security.debian.org/debian-security/ bullseye-security main contrib non-free" >> /etc/apt/sources.list && \
123119
echo "**** generate locale ****" && \
124120
locale-gen en_US.UTF-8 && \
125-
rm -Rf /usr/share/locale && \
126-
mv /usr/share/i18n/locales/en_US /tmp/ && \
127-
rm -Rf /usr/share/i18n/locales/* && \
128-
mv /tmp/en_US /usr/share/i18n/locales/ && \
129121
echo "**** create abc user and make our folders ****" && \
130122
useradd -u 911 -U -d /config -s /bin/false abc && \
131123
usermod -G users abc && \

0 commit comments

Comments
 (0)