Skip to content

Commit

Permalink
refactor dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
algo7 committed Oct 9, 2023
1 parent ce08147 commit 5e64577
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions proxy_pool/Dockerfile
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"]

0 comments on commit 5e64577

Please sign in to comment.