Skip to content
Snippets Groups Projects
Commit d883ec93 authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

CI: reduce the size of the CI docker container

Only install the required dependencies for chromium/firefox and nothing more.
We get the rest via playwright.
parent effe38ab
No related branches found
No related tags found
No related merge requests found
Pipeline #188735 passed
......@@ -20,10 +20,6 @@ RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.lis
RUN apt-get update && apt-get install -y \
nodejs \
yarn \
chromium \
# libgbm1: newer chromium from puppeteer
libgbm1 \
firefox-esr \
composer \
php-zip \
php-curl \
......@@ -31,6 +27,15 @@ RUN apt-get update && apt-get install -y \
sudo \
&& rm -rf /var/lib/apt/lists/*
# only get dependencies of chromium/firefox
RUN apt-get update && apt-get install --no-install-recommends -y \
chromium \
firefox-esr \
&& apt-get remove -y \
chromium \
firefox-esr \
&& rm -rf /var/lib/apt/lists/*
RUN useradd -u 1000 -ms /bin/bash user
RUN echo 'user ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
USER user
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment