forked from sgtsquiggs/docker-deluge-openvpn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
29 lines (23 loc) · 776 Bytes
/
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
FROM linuxserver/deluge:latest
LABEL maintainer="Matthew Crenshaw"
VOLUME /config
VOLUME /downloads
# Install openvpn and utilities
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get install -y wget git curl jq sudo ufw iputils-ping openvpn bc \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
COPY root/ /
ENV OPENVPN_USERNAME=**None** \
OPENVPN_PASSWORD=**None** \
OPENVPN_PROVIDER=**None** \
ENABLE_UFW=false \
UFW_ALLOW_GW_NET=false \
UFW_EXTRA_PORTS= \
UFW_DISABLE_IPTABLES_REJECT=false \
DROP_DEFAULT_ROUTE=
HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 \
CMD curl -L -f https://api.ipify.org || exit 1
# Expose port and run
EXPOSE 8112 58846 58946 58946/udp