-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
11 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,21 @@ | ||
# Base image | ||
FROM alpine:latest | ||
|
||
|
||
RUN apk add openvpn openresolv supervisor squid dante-server bash && \ | ||
RUN apk add openvpn \ | ||
openresolv \ | ||
supervisor \ | ||
squid \ | ||
dante-server bash && \ | ||
# ProtonVPN DNS update scripts: https://protonvpn.com/support/linux-openvpn/ | ||
wget "https://raw.githubusercontent.com/ProtonVPN/scripts/master/update-resolv-conf.sh" -O "/etc/openvpn/update-resolv-conf" && \ | ||
chmod +x "/etc/openvpn/update-resolv-conf" | ||
|
||
COPY supervisord.conf /etc/supervisord.conf | ||
# Copy the config file of supervisord, Squid HTTP Proxy, and Dante SOCKS Proxy | ||
COPY supervisord.conf sockd.conf /etc/ | ||
COPY squid.conf /etc/squid/squid.conf | ||
COPY sockd.conf /etc/sockd.conf | ||
|
||
|
||
# Squid Proxy on 8888, and Dante on 8881 | ||
EXPOSE 8888 8881 | ||
|
||
# Starts Dante, Squid and OpenVPN via supervisord | ||
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"] |