feat: update to Robotframework 7, update deps, install Chrome

This commit is contained in:
2024-01-27 15:51:49 +01:00
parent c84a5bd9c8
commit 5a0f986279
3 changed files with 21 additions and 41 deletions
+13 -10
View File
@@ -1,19 +1,22 @@
FROM python:3.9-slim-bullseye
FROM python:3.11-slim-bullseye
ARG TARGETOS
ARG TARGETARCH
ARG GECKODRIVER_VERSION=0.32.0
RUN apt-get update && \
apt-get -y install jq firefox-esr curl git && \
rm -r /var/lib/apt/lists/*
RUN install -d -m 0755 /etc/apt/keyrings && \
apt-get update && \
apt-get -y install wget gnupg2 jq curl git fonts-liberation libdrm2 libgbm1 libnspr4 libnss3 libu2f-udev libvulkan1 xdg-utils && \
wget -q https://packages.mozilla.org/apt/repo-signing-key.gpg -O- | tee /etc/apt/keyrings/packages.mozilla.org.asc > /dev/null && \
gpg -n -q --import --import-options import-show /etc/apt/keyrings/packages.mozilla.org.asc | awk '/pub/{getline; gsub(/^ +| +$/,""); print "\n"$0"\n"}' && \
echo "deb [signed-by=/etc/apt/keyrings/packages.mozilla.org.asc] https://packages.mozilla.org/apt mozilla main" | tee -a /etc/apt/sources.list.d/mozilla.list > /dev/null && \
printf 'Package: *\nPin: origin packages.mozilla.org\nPin-Priority: 1000' >/etc/apt/preferences.d/mozilla && \
apt-get update && \
apt-get -y install firefox && \
wget -q https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb && \
dpkg -i google-chrome-stable_current_amd64.deb && \
rm -r /var/lib/apt/lists/* google-chrome-stable_current_amd64.deb
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt && \
rm requirements.txt
COPY geckodriver.sh .
RUN ./geckodriver.sh $GECKODRIVER_VERSION $TARGETOS $TARGETARCH && \
rm geckodriver.sh
# echo "192.168.65.2 app-acctest auth0 api-acctest" >> /etc/hosts