github.com/argoproj/argo-cd/v2@v2.10.9/ui-test/Dockerfile (about) 1 FROM docker.io/library/node:20.7.0@sha256:f08c20b9f9c55dd47b1841793f0ee480c5395aa165cd02edfd68b068ed64bfb5 as node 2 3 RUN apt-get update && apt-get install --no-install-recommends -y \ 4 software-properties-common 5 6 #Chrome browser to run the tests 7 ARG CHROME_VERSION=86.0.4240.75 8 RUN curl https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add \ 9 && wget https://www.slimjet.com/chrome/download-chrome.php?file=files%2F$CHROME_VERSION%2Fgoogle-chrome-stable_current_amd64.deb \ 10 && dpkg -i download-chrome*.deb || true 11 12 RUN apt-get install --no-install-recommends -y -f \ 13 && rm -rf /var/lib/apt/lists/* 14 15 #Disable the SUID sandbox so that chrome can launch without being in a privileged container 16 RUN dpkg-divert --add --rename --divert /opt/google/chrome/google-chrome.real /opt/google/chrome/google-chrome \ 17 && echo "#! /bin/bash\nexec /opt/google/chrome/google-chrome.real --no-sandbox --disable-setuid-sandbox \"\$@\"" > /opt/google/chrome/google-chrome \ 18 && chmod 755 /opt/google/chrome/google-chrome 19 20 WORKDIR /usr/src/app 21 COPY package*.json ./ 22 COPY yarn.lock ./ 23 RUN yarn install && yarn cache clean 24 COPY . . 25