Skip to content

Commit d60e5e5

Browse files
tom93vmcj
authored andcommitted
Restore rm /var/lib/apt/lists in docker-gitlabci/Dockerfile
It was removed as part of commit 7c8d5b9 (Upgrade gitlab image to 24.04, 2024-04-28), but it should be kept to reduce the size of the image (if the lists aren't removed in the same RUN directive as `apt-get update` then they will be stored in the layer and make the image larger, even if a later RUN directive removes the lists).
1 parent 986b352 commit d60e5e5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docker-gitlabci/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ RUN apt-get update && apt-get install -y \
2323
# Code coverage for unit test \
2424
php-pear php-dev \
2525
# Needed NPM packages \
26-
&& npm install -g pa11y puppeteer
26+
&& npm install -g pa11y puppeteer \
27+
&& rm -rf /var/lib/apt/lists/*
2728

2829
# Install needed global PHP modules
2930
RUN composer -n require justinrainbow/json-schema

0 commit comments

Comments
 (0)