-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathDockerfile
43 lines (32 loc) · 1.06 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
FROM lzzy12/mega-sdk-python:latest
# Install all the required packages
WORKDIR /usr/src/app
RUN chmod 777 /usr/src/app
RUN apt-get -qq update
RUN apt-get -qq install -y aria2 python3 python3-pip \
git bash build-essential curl wget \
nodejs npm aria2 p7zip-full zip unzip qbittorrent-nox ruby python-minimal python-pip locales pv jq ffmpeg mediainfo
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
# rclone and gclone
RUN curl https://rclone.org/install.sh | bash
RUN aria2c https://git.io/gclone.sh && bash gclone.sh
#ngrok
RUN aria2c https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip && unzip ngrok-stable-linux-amd64.zip
#install rmega
RUN gem install rmega
# Copies config(if it exists)
COPY . .
RUN chmod +x g && chmod +x db.sh
# Install requirements and start the bot
RUN npm install
#install requirements
COPY requirements.txt .
RUN pip3 install --no-cache-dir -r requirements.txt
# setup workdir
RUN dpkg --add-architecture i386
RUN apt-get update
RUN apt-get -y dist-upgrade
CMD ["node", "server"]