This repository has been archived by the owner on May 15, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 464
/
Dockerfile
53 lines (41 loc) · 1.49 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
FROM python:3.9-slim-buster
ENV PIP_NO_CACHE_DIR 1
ENV LANG C.UTF-8
ENV DEBIAN_FRONTEND noninteractive
RUN sed -i.bak 's/us-west-2\.ec2\.//' /etc/apt/sources.list
WORKDIR /app/
RUN apt -qq update && apt -qq upgrade -y && \
apt -qq install -y --no-install-recommends \
apt-utils \
curl \
git \
gnupg2 \
wget \
unzip \
tree
RUN mkdir -p /tmp/ && \
cd /tmp/ && \
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 mkdir -p /tmp/ && \
cd /tmp/ && \
wget -O /tmp/chromedriver.zip http://chromedriver.storage.googleapis.com/$(curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE)/chromedriver_linux64.zip && \
unzip /tmp/chromedriver.zip chromedriver -d /usr/bin/ && \
rm /tmp/chromedriver.zip
ENV GOOGLE_CHROME_DRIVER /usr/bin/chromedriver
ENV GOOGLE_CHROME_BIN /usr/bin/google-chrome-stable
RUN apt -qq update && apt -qq install -y --no-install-recommends \
gcc python3-dev zlib1g-dev \
apt-transport-https \
build-essential coreutils jq pv \
ffmpeg mediainfo \
neofetch \
p7zip-full \
libfreetype6-dev libjpeg-dev libpng-dev libgif-dev libwebp-dev && \
rm -rf /var/lib/apt/lists /var/cache/apt/archives /tmp/*
COPY requirements.txt .
RUN pip install -U setuptools wheel && \
pip install --no-cache-dir -r requirements.txt
COPY . .
CMD [ "bash", "./run" ]