Free up ~70MB space again (#1)
This commit is contained in:
parent
c8c2055ffa
commit
7aa288b7df
14
Dockerfile
14
Dockerfile
|
@ -14,6 +14,7 @@ RUN pacman -Sy --noconfirm \
|
||||||
dhcpcd \
|
dhcpcd \
|
||||||
iptables \
|
iptables \
|
||||||
less \
|
less \
|
||||||
|
localepurge \
|
||||||
man \
|
man \
|
||||||
mg \
|
mg \
|
||||||
nano \
|
nano \
|
||||||
|
@ -47,12 +48,6 @@ RUN sed -e s/^\#en_US.UTF-8/en_US.UTF-8/ -i /etc/locale.gen \
|
||||||
&& locale-gen
|
&& locale-gen
|
||||||
|
|
||||||
|
|
||||||
# Cleanup
|
|
||||||
RUN pacman -Rns linux-armv7 --noconfirm \
|
|
||||||
&& pacman -Sc --noconfirm \
|
|
||||||
&& rm -rf /var/cache/pacman/pkg
|
|
||||||
|
|
||||||
|
|
||||||
# Systemd
|
# Systemd
|
||||||
RUN systemctl disable getty@tty1.service \
|
RUN systemctl disable getty@tty1.service \
|
||||||
&& systemctl disable systemd-networkd.service \
|
&& systemctl disable systemd-networkd.service \
|
||||||
|
@ -69,6 +64,13 @@ ADD ./patches/etc/ /etc/
|
||||||
ADD ./patches/usr/ /usr/
|
ADD ./patches/usr/ /usr/
|
||||||
|
|
||||||
|
|
||||||
|
# Cleanup
|
||||||
|
RUN pacman -Rns linux-armv7 --noconfirm \
|
||||||
|
&& pacman -Sc --noconfirm \
|
||||||
|
&& rm -rf /var/cache/pacman/pkg \
|
||||||
|
&& localepurge-config && localepurge
|
||||||
|
|
||||||
|
|
||||||
RUN systemctl enable oc-ssh-keys \
|
RUN systemctl enable oc-ssh-keys \
|
||||||
&& systemctl enable oc-add-extra-volumes \
|
&& systemctl enable oc-add-extra-volumes \
|
||||||
&& systemctl enable oc-sync-kernel-modules
|
&& systemctl enable oc-sync-kernel-modules
|
||||||
|
|
|
@ -0,0 +1,53 @@
|
||||||
|
####################################################
|
||||||
|
# This is the configuration file for localepurge(8).
|
||||||
|
####################################################
|
||||||
|
# Comment this to enable localepurge.
|
||||||
|
# NO COMMENT IT IF YOU ARE NOT SURE WHAT ARE YOU DOING
|
||||||
|
# THIS APP DO NOT ASK FOR CONFIRMATION
|
||||||
|
|
||||||
|
#NEEDSCONFIGFIRST
|
||||||
|
|
||||||
|
####################################################
|
||||||
|
# Uncommenting this string enables removal of localized
|
||||||
|
# man pages based on the configuration information for
|
||||||
|
# locale files defined below:
|
||||||
|
|
||||||
|
MANDELETE
|
||||||
|
|
||||||
|
####################################################
|
||||||
|
# Uncommenting this string causes localepurge to simply delete
|
||||||
|
# locales which have newly appeared on the system without
|
||||||
|
# bothering you about it:
|
||||||
|
|
||||||
|
#DONTBOTHERNEWLOCALE
|
||||||
|
|
||||||
|
#####################################################
|
||||||
|
# Commenting out this string enables faster but less
|
||||||
|
# accurate calculation of freed disk space:
|
||||||
|
|
||||||
|
#QUICKNDIRTYCALC
|
||||||
|
|
||||||
|
####################################################
|
||||||
|
# Uncommenting this string enables display of freed disk
|
||||||
|
# space if localepurge has purged any superfluous data:
|
||||||
|
|
||||||
|
SHOWFREEDSPACE
|
||||||
|
|
||||||
|
#####################################################
|
||||||
|
# Commenting out this string disables verbose output:
|
||||||
|
|
||||||
|
#VERBOSE
|
||||||
|
|
||||||
|
#####################################################
|
||||||
|
# You like Colors?
|
||||||
|
|
||||||
|
#NOCOLOR
|
||||||
|
|
||||||
|
#####################################################
|
||||||
|
# You can use the -v -d -nc options in command line.
|
||||||
|
|
||||||
|
#####################################################
|
||||||
|
# Following locales won't be deleted from this system
|
||||||
|
# for example:
|
||||||
|
en_US
|
||||||
|
en_US.UTF-8
|
Loading…
Reference in New Issue