-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
39 lines (31 loc) · 1.47 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
FROM ubuntu:20.04
ENV DEBIAN_FRONTEND="noninteractive"
RUN apt-get -y update && apt-get -y upgrade && \
apt-get install -y software-properties-common && \
add-apt-repository -y ppa:qbittorrent-team/qbittorrent-stable && \
apt-get install -y python3 python3-pip python3-lxml aria2 \
qbittorrent-nox tzdata p7zip-full p7zip-rar xz-utils wget curl pv jq \
ffmpeg locales unzip neofetch mediainfo git make g++ gcc automake \
autoconf libtool libcurl4-openssl-dev qt5-default \
libsodium-dev libssl-dev libcrypto++-dev libc-ares-dev \
libsqlite3-dev libfreeimage-dev swig libboost-all-dev \
libpthread-stubs0-dev zlib1g-dev
# Installing Mega SDK Python Binding
ENV MEGA_SDK_VERSION="3.9.7"
RUN git clone https://github.com/meganz/sdk.git --depth=1 -b v$MEGA_SDK_VERSION ~/home/sdk \
&& cd ~/home/sdk && rm -rf .git \
&& autoupdate -fIv && ./autogen.sh \
&& ./configure --disable-silent-rules --enable-python --with-sodium --disable-examples \
&& make -j$(nproc --all) \
&& cd bindings/python/ && python3 setup.py bdist_wheel \
&& cd dist/ && pip3 install --no-cache-dir megasdk-$MEGA_SDK_VERSION-*.whl
WORKDIR /usr/src/app
RUN chmod 777 /usr/src/app
COPY lmao.txt .
RUN pip3 install --no-cache-dir -r lmao.txt
COPY extract /usr/local/bin
COPY pextract /usr/local/bin
RUN chmod +x /usr/local/bin/extract && chmod +x /usr/local/bin/pextract
COPY . .
RUN chmod +x aria.sh
CMD ["bash","start.sh"]