-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathDockerfile
63 lines (55 loc) · 1.92 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
FROM --platform=$BUILDPLATFORM ubuntu:20.04
ARG TARGETPLATFORM
ARG BUILDPLATFORM
ARG BUILD_DATE
ARG VCS_REF
ARG VCS_URL
ARG VERSION
ARG TIMEZONE
LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.name="TTK_Base_Image" \
org.label-schema.description="TorToolkit based image" \
org.label-schema.url="https://rokibhasansagar.github.io" \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url=$VCS_URL \
org.label-schema.vendor="Rokib Hasan Sagar" \
org.label-schema.version=$VERSION \
org.label-schema.schema-version="1.0"
LABEL maintainer="fr3akyphantom <[email protected]>"
WORKDIR /torapp
ENV DEBIAN_FRONTEND noninteractive
RUN chmod -R 777 /torapp
RUN apt-get -qq update -y && \
apt-get -qq install -y --no-install-recommends \
curl git wget aria2 ca-certificates \
python3 python3-pip \
tzdata \
software-properties-common gnupg2 gpg-agent \
ffmpeg mediainfo unzip p7zip-full p7zip-rar \
libcrypto++-dev libssl-dev libc-ares-dev libcurl4-openssl-dev \
libsqlite3-dev libsodium-dev && \
ln -fs /usr/share/zoneinfo/${TIMEZONE} /etc/localtime && \
dpkg-reconfigure -f noninteractive tzdata && \
add-apt-repository -y ppa:qbittorrent-team/qbittorrent-stable && \
apt-get -qq install -y qbittorrent-nox && \
curl -sL https://rclone.org/install.sh | bash && \
apt-get autoremove -qy && \
case $TARGETPLATFORM in \
"linux/amd64"*) \
export plat=amd64 \
;; \
"linux/386") \
export plat=i386 \
;; \
"linux/arm64") \
export plat=arm64 \
;; \
"linux/arm/v7") \
export plat=armv7 \
;; \
"linux/arm/v6") \
export plat=armv6 \
;; \
esac && \
curl -sL https://github.com/viswanathbalusu/megasdkrest/releases/download/v0.1.21/megasdkrest-${plat} -o /usr/local/bin/megasdkrest && \
chmod +x /usr/local/bin/megasdkrest