From 5e645771678ffed544691208fbc5e9a97a6ce239 Mon Sep 17 00:00:00 2001 From: algo7 <11154774+algo7@users.noreply.github.com> Date: Mon, 9 Oct 2023 06:46:58 +0200 Subject: [PATCH] refactor dockerfile --- proxy_pool/Dockerfile | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/proxy_pool/Dockerfile b/proxy_pool/Dockerfile index 3dab2d1..249eb20 100644 --- a/proxy_pool/Dockerfile +++ b/proxy_pool/Dockerfile @@ -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"] \ No newline at end of file