Created
August 14, 2022 08:39
-
-
Save TheCaduceus/8d833bdc89317ea78900df837db64b56 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:21.04 | |
# LABEL | |
MAINTAINER missemily2022 [email protected] | |
LABEL org.opencontainers.image.source="https://github.com/missemily2022/Anasty_Docker" | |
LABEL org.opencontainers.image.description="Docker for Anas Repo" | |
ARG TARGETPLATFORM BUILDPLATFORM | |
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 && \ | |
add-apt-repository universe && \ | |
add-apt-repository multiverse && \ | |
add-apt-repository restricted && \ | |
apt-get install -y python3 python3-pip python3-lxml aria2 \ | |
qbittorrent-nox tzdata p7zip-full p7zip-rar xz-utils curl pv jq \ | |
ffmpeg locales neofetch git make g++ gcc automake unzip \ | |
autoconf libtool libcurl4-openssl-dev \ | |
libsodium-dev libssl-dev libcrypto++-dev libc-ares-dev \ | |
libsqlite3-dev libfreeimage-dev swig libboost-all-dev \ | |
libpthread-stubs0-dev zlib1g-dev libpq-dev libffi-dev | |
# Installing Mega SDK Python Binding | |
ENV MEGA_SDK_VERSION="3.12.2" | |
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 && ls && pip3 install --no-cache-dir megasdk-*.whl | |
# Installing Mirror-Bot Requirements | |
COPY requirements.txt . | |
RUN pip3 install --no-cache-dir -r requirements.txt | |
RUN apt-get -y update && apt-get -y upgrade && apt-get -y autoremove && apt-get -y autoclean | |
WORKDIR /usr/src/app | |
RUN chmod 777 /usr/src/app | |
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment