forked from rahulkhatri137/mirrorbot137
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
executable file
·19 lines (14 loc) · 855 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM python:latest
RUN apt-get -qq update && apt-get -qq -y dist-upgrade \
&& apt-get -qq -y install --no-install-recommends locales python3-lxml python3-pip python3-dev libc-ares-dev libcrypto++-dev libcurl4-openssl-dev libmagic-dev libsodium-dev libsqlite3-dev libssl-dev git aria2 curl ffmpeg jq p7zip-full pv gcc libpq-dev unzip \
&& curl -fsSL https://github.com/jaskaranSM/megasdkrest/releases/download/v0.1/megasdkrest -o /usr/local/bin/megasdkrest && chmod +x /usr/local/bin/megasdkrest
WORKDIR /usr/src/app
COPY . .
RUN set -ex \
&& chmod 777 /usr/src/app \
&& cp .netrc /root/.netrc \
&& chmod 600 /root/.netrc \
&& cp extract pextract /usr/local/bin \
&& chmod +x aria.sh /usr/local/bin/extract /usr/local/bin/pextract
RUN pip3 install --no-cache-dir --upgrade -r requirements.txt
CMD ["python3", "-m", "bot"]