forked from sharad2884/mirror-leech-telegram-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
26 lines (20 loc) · 1020 Bytes
/
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
FROM ubuntu:22.04
WORKDIR /usr/src/app
SHELL ["/bin/bash", "-c"]
RUN chmod 777 /usr/src/app
RUN apt-get -y update && DEBIAN_FRONTEND="noninteractive" \
apt-get install -y python3 python3-pip aria2 qbittorrent-nox \
tzdata p7zip-full p7zip-rar xz-utils curl pv jq ffmpeg \
locales git unzip rtmpdump libmagic-dev libcurl4-openssl-dev \
libssl-dev libc-ares-dev libsodium-dev libcrypto++-dev \
libsqlite3-dev libfreeimage-dev libpq-dev libffi-dev \
&& locale-gen en_US.UTF-8 && \
curl -L https://github.com/anasty17/megasdkrest/releases/download/latest/megasdkrest-$(cpu=$(uname -m);\
if [[ "$cpu" == "x86_64" ]]; then echo "amd64"; elif [[ "$cpu" == "x86" ]]; \
then echo "i386"; elif [[ "$cpu" == "aarch64" ]]; then echo "arm64"; else echo $cpu; fi) \
-o /usr/local/bin/megasdkrest && chmod +x /usr/local/bin/megasdkrest
ENV LANG="en_US.UTF-8" LANGUAGE="en_US:en"
COPY requirements.txt .
RUN pip3 install --no-cache-dir -r requirements.txt
COPY . .
CMD ["bash", "start.sh"]