-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
40 lines (31 loc) · 885 Bytes
/
Dockerfile
File metadata and controls
40 lines (31 loc) · 885 Bytes
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
29
30
31
32
33
34
35
36
37
38
39
40
FROM ubuntu:focal
RUN : \
&& apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
python3 \
python3-venv \
curl \
git \
unzip \
gnupg2 \
wget \
graphviz \
graphviz-dev \
xvfb \
libgconf-2-4 \
&& rm -rf /var/lib/apt/lists/**
WORKDIR /src
EXPOSE 8090
COPY app/requirements.txt .
ENV PATH=/venv/bin:$PATH
RUN : \
&& python3 -m venv /venv \
&& /venv/bin/pip install wheel \
&& pip --no-cache-dir install -r requirements.txt
# headless chrome url
# https://chromedriver.chromium.org/downloads
RUN curl -O https://chromedriver.storage.googleapis.com/104.0.5112.79/chromedriver_linux64.zip \
&& unzip chromedriver_linux64.zip \
&& mv chromedriver ../venv/bin/chromedriver \
&& rm chromedriver_linux64.zip
COPY /app .