2023-01-09 15:19:55 +01:00
|
|
|
FROM python:3.9-slim-bullseye
|
2019-04-16 08:39:58 +02:00
|
|
|
|
2023-01-09 15:19:55 +01:00
|
|
|
ARG TARGETOS
|
|
|
|
|
ARG TARGETARCH
|
|
|
|
|
ARG GECKODRIVER_VERSION=0.32.0
|
2019-04-16 08:39:58 +02:00
|
|
|
|
2019-06-08 10:28:28 +02:00
|
|
|
RUN apt-get update && \
|
2023-01-09 15:19:55 +01:00
|
|
|
apt-get -y install jq firefox-esr curl git && \
|
|
|
|
|
rm -r /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
|
|
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
|