forked from BianSepang/Docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
73 lines (64 loc) · 2.03 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
64
65
66
67
68
69
70
71
72
73
FROM python:slim-buster
ENV DEBIAN_FRONTEND noninteractive
ADD https://raw.githubusercontent.com/BianSepang/WeebProject/staging/requirements.txt requirements.txt
RUN set -ex \
&& apt-get -qq update \
&& apt-get -qq -y install --no-install-recommends \
apt-utils \
aria2 \
bash \
build-essential \
curl \
ffmpeg \
figlet \
git \
gnupg2 \
jq \
libpq-dev \
libssl-dev \
libwebp6 \
libxml2 \
megatools \
neofetch \
postgresql \
pv \
sudo \
unar \
unrar-free \
unzip \
wget \
xz-utils \
zip \
# Install Google Chrome
&& echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list \
&& wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
&& apt-get -qq update \
&& apt-get -qq -y install google-chrome-stable \
# Install chromedriver
&& wget -N https://chromedriver.storage.googleapis.com/$(curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE)/chromedriver_linux64.zip -P ~/ \
&& unzip ~/chromedriver_linux64.zip -d ~/ \
&& rm ~/chromedriver_linux64.zip \
&& mv -f ~/chromedriver /usr/bin/chromedriver \
&& chown root:root /usr/bin/chromedriver \
&& chmod 0755 /usr/bin/chromedriver \
# Install Python modules
&& pip3 install -r requirements.txt \
&& rm requirements.txt \
# Install RAR
&& mkdir -p /tmp/ \
&& cd /tmp/ \
&& wget -O /tmp/rarlinux.tar.gz http://www.rarlab.com/rar/rarlinux-x64-6.0.0.tar.gz \
&& tar -xzvf rarlinux.tar.gz \
&& cd rar \
&& cp -v rar unrar /usr/bin/ \
# clean up
&& rm -rf /tmp/rar* \
# Cleanup
&& apt-get -qq -y purge --auto-remove \
apt-utils \
build-essential \
gnupg2 \
&& apt-get -qq -y clean \
&& rm -rf -- /var/lib/apt/lists/* /var/cache/apt/archives/* /etc/apt/sources.list.d/*
EXPOSE 80 443
CMD ["python3"]