Skip to content

Commit fc97d9c

Browse files
Reduce docker image size and fix apt updates
- Clean up ruby installation artifacts in base dockerfiles. - Ensure `apt-get update` is run before installation steps to fix build failures. - Fix potential apt cache issues in `docker/chromium/base/ubuntu-24-04.Dockerfile`.
1 parent fa112d2 commit fc97d9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker/chromium/base/ubuntu-24-04.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ENV UPDATE_WEB_TESTS True
1212

1313
# Note: snapcraft installation seems to always fail.
1414
RUN ln -s /usr/local/bin/python3.11 /usr/local/bin/python3
15-
RUN echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | debconf-set-selections && curl 'https://chromium.googlesource.com/chromium/src/+/main/build/install-build-deps.py?format=TEXT' | base64 -d > /tmp/install-build-deps.py && sed -i s/snapcraft/doesnotexist/ /tmp/install-build-deps.py && sed -i "s/if requires_pinned_linux_libc():/if False:/" /tmp/install-build-deps.py && chmod u+x /tmp/install-build-deps.py && /tmp/install-build-deps.py --backwards-compatible --no-prompt --no-chromeos-fonts --syms --lib32
15+
RUN apt-get update && echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | debconf-set-selections && curl 'https://chromium.googlesource.com/chromium/src/+/main/build/install-build-deps.py?format=TEXT' | base64 -d > /tmp/install-build-deps.py && sed -i s/snapcraft/doesnotexist/ /tmp/install-build-deps.py && sed -i "s/if requires_pinned_linux_libc():/if False:/" /tmp/install-build-deps.py && chmod u+x /tmp/install-build-deps.py && /tmp/install-build-deps.py --backwards-compatible --no-prompt --no-chromeos-fonts --syms --lib32
1616

1717

1818
RUN dpkg --add-architecture i386 && \

0 commit comments

Comments
 (0)