forked from curve25519xsalsa20poly1305/docker-openvpn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
38 lines (30 loc) · 1.08 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
FROM alpine:latest
COPY openvpn-up.sh /usr/local/bin/
COPY entrypoint.sh /usr/local/bin/
RUN echo "http://dl-4.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \
&& apk add --no-cache bash curl wget openvpn openresolv openrc openssl 3proxy \
&& mkdir -p /etc/openvpn \
&& curl -sL -o /etc/openvpn/update-resolv-conf \
https://github.com/masterkorp/openvpn-update-resolv-conf/raw/master/update-resolv-conf.sh \
&& chmod +x \
/usr/local/bin/openvpn-up.sh \
/usr/local/bin/entrypoint.sh \
/etc/openvpn/update-resolv-conf
# OpenVPN Options
ENV OPENVPN_CONFIG ""
ENV OPENVPN_UP ""
# aria2 Options
ENV ARIA2_PORT ""
ENV ARIA2_PASS ""
ENV ARIA2_PATH "."
ENV ARIA2_ARGS ""
ENV ARIA2_UP ""
# Proxy Options
ENV PROXY_USER ""
ENV PROXY_PASS ""
ENV PROXY_UP ""
# Proxy Ports Options
ENV SOCKS5_PROXY_PORT "1080"
ENV HTTP_PROXY_PORT "3128"
ENV DAEMON_MODE "false"
ENTRYPOINT [ "entrypoint.sh" ]