feat: add robotframework-browser dependency

Adds the robotframework-browser package to enhance browser 
automation capabilities for testing. This change allows for 
more versatile testing scenarios within the existing project.
This commit is contained in:
2024-12-11 10:19:39 +01:00
parent 16b22fd975
commit bca9b045db
2 changed files with 8 additions and 6 deletions
+7 -6
View File
@@ -1,22 +1,23 @@
FROM python:3.12-slim-bullseye@sha256:de274ae7b7c8329d7d6883f951bf730acba8bf8f4ac56130336ce222768d72ac
FROM python:3.12-slim@sha256:2b0079146a74e23bf4ae8f6a28e1b484c6292f6fb904cbb51825b4a19812fcd8
ARG TARGETOS
ARG TARGETARCH
ARG GECKODRIVER_VERSION=0.32.0
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 && \
apt update -qq && \
apt -y -qq install wget gnupg2 jq curl git fonts-liberation libdrm2 libgbm1 libnspr4 libnss3 libu2f-udev libvulkan1 nodejs npm 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 && \
apt update -qq && \
apt -y -qq 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
rm requirements.txt && \
rfbrowser init