20 lines
493 B
Docker
20 lines
493 B
Docker
FROM python:3.9-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/*
|
|
|
|
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
|