-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
28 lines (22 loc) · 1.15 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM python:3.12.0a4-alpine3.17
# update apk repo
RUN echo "https://dl-4.alpinelinux.org/alpine/v3.10/main" >> /etc/apk/repositories && \
echo "https://dl-4.alpinelinux.org/alpine/v3.10/community" >> /etc/apk/repositories
# install chromedriver
RUN apk update
RUN apk add --no-cache chromium chromium-chromedriver tzdata
# Get all the prereqs
RUN wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub
RUN wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.30-r0/glibc-2.30-r0.apk
RUN wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.30-r0/glibc-bin-2.30-r0.apk
RUN apk update && \
apk add openjdk11-jre curl tar && \
curl -o allure-2.13.8.tgz -Ls https://repo.maven.apache.org/maven2/io/qameta/allure/allure-commandline/2.13.8/allure-commandline-2.13.8.tgz && \
tar -zxvf allure-2.13.8.tgz -C /opt/ && \
ln -s /opt/allure-2.13.8/bin/allure /usr/bin/allure && \
rm allure-2.13.8.tgz
WORKDIR /usr/workspace
# Copy the dependencies file to the working directory
COPY ./requirements.txt /usr/workspace
# Install Python dependencies
RUN pip3 install -r requirements.txt