forked from mattes/rotating-proxy
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (23 loc) · 878 Bytes
/
Dockerfile
File metadata and controls
31 lines (23 loc) · 878 Bytes
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
FROM --platform=linux/arm64/v8 ubuntu:20.04
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update
RUN apt-get install -y haproxy tor netcat ruby wget curl zlib1g-dev libyaml-dev build-essential unzip
RUN wget https://github.com/jech/polipo/archive/master.zip -O polipo.zip -Y off \
&& unzip polipo.zip \
&& cd polipo-master \
&& make \
&& install polipo /usr/local/bin/ \
&& cd .. \
&& rm -rf polipo.zip polipo-master \
&& mkdir -p /usr/share/polipo/www /var/cache/polipo
RUN update-rc.d -f tor remove
RUN update-rc.d -f polipo remove
RUN gem install excon
ADD start.rb /usr/local/bin/start.rb
RUN chmod +x /usr/local/bin/start.rb
ADD newnym.sh /usr/local/bin/newnym.sh
RUN chmod +x /usr/local/bin/newnym.sh
ADD haproxy.cfg.erb /usr/local/etc/haproxy.cfg.erb
ADD uncachable /etc/polipo/uncachable
EXPOSE 5566 4444
CMD /usr/local/bin/start.rb