-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathDockerfile
More file actions
38 lines (32 loc) · 974 Bytes
/
Dockerfile
File metadata and controls
38 lines (32 loc) · 974 Bytes
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
FROM debian:bullseye-slim
RUN usermod -u 99 nobody
# Install WireGuard, OpenVPN and other dependencies for running qbittorrent-nox and the container scripts
RUN echo "deb http://deb.debian.org/debian/ unstable main" > /etc/apt/sources.list.d/unstable-wireguard.list \
&& printf 'Package: *\nPin: release a=unstable\nPin-Priority: 150\n' > /etc/apt/preferences.d/limit-unstable \
&& apt update \
&& apt -y install --no-install-recommends \
ca-certificates \
curl \
dos2unix \
inetutils-ping \
ipcalc \
iptables \
kmod \
libssl1.1 \
moreutils \
net-tools \
openresolv \
openvpn \
procps \
wireguard-tools \
&& apt-get clean \
&& apt -y autoremove \
&& rm -rf \
/var/lib/apt/lists/* \
/tmp/* \
/var/tmp/*
VOLUME /config
ADD openvpn/ /etc/openvpn/
ADD passthrough/ /etc/passthrough/
RUN chmod +x /etc/openvpn/*.sh /etc/passthrough/*.sh
CMD ["/bin/bash", "/etc/openvpn/start.sh"]