-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
66 lines (58 loc) · 2.01 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
64
65
66
FROM debian:testing-slim@sha256:7aa6005592145de753828ada9a9da8b28d1037b389e5773ffc25fab73a9c8389
LABEL authors="josh"
USER root
ENV HOME=/config
ENV XDG_CONFIG_HOME=/config
ENV XDG_DATA_HOME=/config
ARG TARGETPLATFORM
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update -y \
&& apt-get install -y \
qbittorrent-nox \
wireguard \
iproute2 \
openresolv \
iptables \
xz-utils \
# Debugging tools
traceroute \
iputils-ping \
iputils-tracepath \
curl \
dnsutils \
&& apt-get clean -y \
&& groupadd -o -g 100 qbt \
&& useradd -M -o -s /bin/bash -u 100 -g 100 qbt \
&& mkdir -p \
/config/qBittorrent \
/wg_confs \
/downloads \
/temp_downloads \
/torrent_export \
&& chown qbt:qbt \
/config \
/config/qBittorrent \
/downloads \
/temp_downloads \
/torrent_export \
&& chmod 0755 \
/config \
/config/qBittorrent \
/wg_confs \
/downloads \
/temp_downloads \
/torrent_export
ARG S6_OVERLAY_VERSION=3.2.0.0
ADD "https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-noarch.tar.xz" \
"https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-x86_64.tar.xz" \
"https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-aarch64.tar.xz" \
"https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-arm.tar.xz" \
"https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-armhf.tar.xz" \
install_s6.sh \
/tmp/
RUN /tmp/install_s6.sh && rm /tmp/*
# wg-quick runs sysctl but you can't change sysctl settings inside a container, so just fake it to let wg-quick succeed
COPY fake_sysctl.sh /usr/sbin/sysctl
COPY ./default_qbittorrent.conf /default/qBittorrent.conf
COPY ./s6-rc.d /etc/s6-overlay/s6-rc.d/
ENTRYPOINT ["/init"]