Skip to content

Commit

Permalink
Restore rm /var/lib/apt/lists in docker-gitlabci/Dockerfile
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
tom93 committed Jul 9, 2024
1 parent 439cb11 commit 12a31a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docker-gitlabci/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ RUN apt-get update && apt-get install -y \
# Code coverage for unit test \
php-pear php-dev \
# Needed NPM packages \
&& npm install -g pa11y puppeteer
&& npm install -g pa11y puppeteer \
&& rm -rf /var/lib/apt/lists/*

# Install needed global PHP modules
RUN composer -n require justinrainbow/json-schema
Expand Down

0 comments on commit 12a31a1

Please sign in to comment.