Skip to content

Commit e9e3991

Browse files
committed
Remove leftover logfiles and apt/dpkg cache stuff (fixes: #59)
1 parent ed98e83 commit e9e3991

8 files changed

Lines changed: 9 additions & 9 deletions

File tree

‎apache2-shibboleth/Dockerfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ RUN \
1010
libapache2-mod-shib \
1111
gettext \
1212
&& \
13-
rm -rf /var/cache/apt /var/lib/apt/lists/*
13+
rm -rf /var/lib/apt/lists/* /var/cache/apt /var/log/alternatives.log /var/log/apt /var/log/dpkg.log
1414

1515

1616
# Enable Shib

‎apache2/Dockerfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ RUN apt update && \
99
curl \
1010
xz-utils \
1111
&& \
12-
rm -rf /var/cache/apt /var/lib/apt/lists/*
12+
rm -rf /var/lib/apt/lists/* /var/cache/apt /var/log/alternatives.log /var/log/apt /var/log/dpkg.log
1313

1414
# Copy the default apache config
1515
COPY ./conf/security.conf ./conf/openconext.conf /etc/apache2/conf-available/

‎php72-apache2-node14-composer2/Dockerfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ RUN \
1414
vim \
1515
zip \
1616
&& \
17-
rm -rf /var/lib/apt/lists/* /var/cache/apt
17+
rm -rf /var/lib/apt/lists/* /var/cache/apt /var/log/alternatives.log /var/log/apt /var/log/dpkg.log
1818
RUN npm install -g yarn --force
1919

2020
# enable xdebug

‎php72-apache2-node16-composer2/Dockerfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ RUN \
1414
vim \
1515
zip \
1616
&& \
17-
rm -rf /var/lib/apt/lists/* /var/cache/apt
17+
rm -rf /var/lib/apt/lists/* /var/cache/apt /var/log/alternatives.log /var/log/apt /var/log/dpkg.log
1818
RUN npm install -g yarn --force
1919

2020
# enable xdebug

‎php72-apache2/Dockerfile‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ RUN \
2626
libxml2 \
2727
libxml2-dev \
2828
&& \
29-
rm -rf /var/lib/apt/lists/* /var/cache/apt
29+
rm -rf /var/lib/apt/lists/* /var/cache/apt /var/log/alternatives.log /var/log/apt /var/log/dpkg.log
3030

3131
# Install the PHP 7.2 extensions we need
3232
RUN docker-php-ext-install -j$(nproc) soap
@@ -62,7 +62,7 @@ RUN \
6262
libxml2-dev \
6363
zlib1g-dev \
6464
&& \
65-
rm -rf /var/lib/apt/lists/* /var/cache/apt
65+
rm -rf /var/lib/apt/lists/* /var/cache/apt /var/log/alternatives.log /var/log/apt /var/log/dpkg.log
6666

6767
# Enable the Apache2 modules we need and disable the ones we don't need
6868
RUN \

‎php82-apache2-node20-composer2/Dockerfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ RUN \
1414
vim \
1515
zip \
1616
&& \
17-
rm -rf /var/lib/apt/lists/* /var/cache/apt
17+
rm -rf /var/lib/apt/lists/* /var/cache/apt /var/log/alternatives.log /var/log/apt /var/log/dpkg.log
1818
RUN npm install -g yarn --force
1919

2020
# enable xdebug

‎php82-apache2/Dockerfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ RUN \
2020
libxml2 \
2121
libxml2-dev \
2222
&& \
23-
rm -rf /var/lib/apt/lists/* /var/cache/apt
23+
rm -rf /var/lib/apt/lists/* /var/cache/apt /var/log/alternatives.log /var/log/apt /var/log/dpkg.log
2424

2525
# Install the PHP 8.2 extensions we need
2626
RUN docker-php-ext-install -j$(nproc) pdo_mysql

‎python3/Dockerfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ RUN \
2121
xz-utils \
2222
&& \
2323
apt-get -y autoremove && \
24-
rm -rf /var/cache/apt /var/lib/apt/lists/*
24+
rm -rf /var/lib/apt/lists/* /var/cache/apt /var/log/alternatives.log /var/log/apt /var/log/dpkg.log
2525

2626
# if specified, drop privileges to this uid and gid
2727
ARG RUNAS_UID

0 commit comments

Comments
 (0)