forked from TechiError/D--C
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
63 lines (60 loc) · 1.66 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
FROM python:3.9.4-slim-buster
RUN mkdir /app
RUN chmod 777 /app
WORKDIR /app
RUN apt -qq update
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Asia/Kolkata
RUN apt update && apt upgrade -y && apt install --no-install-recommends -y \
debian-keyring \
debian-archive-keyring \
bash \
curl \
git \
util-linux \
libffi-dev \
libjpeg-dev \
liblzma-dev\
libjpeg62-turbo-dev \
libwebp-dev \
linux-headers-amd64 \
musl-dev \
musl \
neofetch \
python3-lxml \
postgresql \
postgresql-client \
libpq-dev \
libcurl4-openssl-dev \
libxml2-dev \
libxslt1-dev \
openssl \
pv \
jq \
wget \
python3-dev \
libreadline-dev \
libyaml-dev \
zlib1g \
ffmpeg \
libssl-dev \
libgconf-2-4 \
libxi6 \
zlib1g-dev \
xvfb \
unzip \
make \
libopus0 \
libopus-dev \
gcc \
neofetch
RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb && \
dpkg -i ./google-chrome-stable_current_amd64.deb; apt -fqqy install && \
rm ./google-chrome-stable_current_amd64.deb
RUN wget -O chromedriver.zip http://chromedriver.storage.googleapis.com/$(curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE)/chromedriver_linux64.zip && \
unzip chromedriver.zip chromedriver -d /usr/bin/ && \
rm chromedriver.zip
COPY start.py .
COPY requirements.txt .
RUN pip3 install --upgrade pip && pip3 install --no-cache-dir -r requirements.txt
CMD ["python3","starter.py"]