forked from iamLiquidX/MirrorX
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (21 loc) · 1.08 KB
/
Copy pathDockerfile
File metadata and controls
25 lines (21 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM python:3.9-slim
WORKDIR /
# Deps
RUN if [ "$(uname -m)" = "aarch64" ] ; then \
export HOST_CPU_ARCH=arm64; \
elif [ "$(uname -m)" = "x86_64" ]; then \
export HOST_CPU_ARCH=amd64; \
fi && \
sed -i 's/main/main non-free/g' /etc/apt/sources.list && \
apt-get -qq update && \
apt-get -qq install -y tzdata curl aria2 p7zip-full p7zip-rar wget xz-utils libmagic-dev gcc libffi-dev nscd && \
apt-get -y autoremove && rm -rf /var/lib/apt/lists/* && apt-get clean && \
wget -q https://github.com/yzop/gg/raw/main/ffmpeg-git-${HOST_CPU_ARCH}-static.tar.xz && \
tar -xf ff*.tar.xz && rm -rf *.tar.xz && \
mv ff*/ff* /usr/local/bin/ && rm -rf ff* && \
wget -q https://github.com/viswanathbalusu/megasdkrest/releases/latest/download/megasdkrest-${HOST_CPU_ARCH} -O /usr/local/bin/megasdkrest && \
chmod a+x /usr/local/bin/megasdkrest && mkdir /app/ && chmod 777 /app/ && \
pip3 install --no-cache-dir MirrorX && \
apt-get purge -yqq gcc && apt-get -y autoremove && rm -rf /var/lib/apt/lists/* && apt-get clean
WORKDIR /app
CMD ["MirrorX"]