-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathUserge
More file actions
44 lines (35 loc) · 1.61 KB
/
Userge
File metadata and controls
44 lines (35 loc) · 1.61 KB
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
FROM python:3.9-slim-buster
RUN echo deb http://http.us.debian.org/debian/ testing non-free contrib main > /etc/apt/sources.list && \
apt -qq update
ENV DEBIAN_FRONTEND=noninteractive
RUN apt -qq install -y --no-install-recommends \
curl git gcc g++ build-essential \
gnupg2 unzip wget ffmpeg jq \
fonts-liberation libatk-bridge2.0-0 libatk1.0-0 \
libatspi2.0-0 libcups2 libgtk-3-0 libnspr4 \
libnss3 libxcomposite1 xdg-utils
RUN mkdir -p /tmp/ && \
cd /tmp/ && \
wget -q 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 -q -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 mkdir -p /tmp/ && \
cd /tmp/ && \
wget -q -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/ && \
rm -rf /tmp/rar*
RUN apt-get -y clean && apt-get -y autoremove \
&& rm -rf /var/lib/apt/lists \
&& rm -rf /var/cache/apt/archives
RUN curl -sLO https://raw.githubusercontent.com/UsergeTeam/Userge/alpha/requirements.txt \
&& pip install -r requirements.txt \
&& rm requirements.txt