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 ...@@ -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 \ RUN apt-get update && apt-get install -y \
nodejs \ nodejs \
yarn \ yarn \
chromium \
# libgbm1: newer chromium from puppeteer
libgbm1 \
firefox-esr \
composer \ composer \
php-zip \ php-zip \
php-curl \ php-curl \
...@@ -31,6 +27,15 @@ RUN apt-get update && apt-get install -y \ ...@@ -31,6 +27,15 @@ RUN apt-get update && apt-get install -y \
sudo \ sudo \
&& rm -rf /var/lib/apt/lists/* && 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 useradd -u 1000 -ms /bin/bash user
RUN echo 'user ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers RUN echo 'user ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
USER user 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