forked from mattes/rotating-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
27 lines (18 loc) · 825 Bytes
/
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
FROM ubuntu:22.04
LABEL org.opencontainers.image.authors="[email protected]"
RUN apt-get update && \
apt-get install -y tor haproxy ruby-full libssl-dev wget curl build-essential zlib1g-dev libyaml-dev libssl-dev netcat && \
ln -s /lib/x86_64-linux-gnu/libssl.so.1.0.0 /lib/libssl.so.1.0.0
RUN wget http://archive.ubuntu.com/ubuntu/pool/universe/p/polipo/polipo_1.1.1-8_amd64.deb
RUN dpkg -i polipo_1.1.1-8_amd64.deb
RUN update-rc.d -f tor remove
RUN update-rc.d -f polipo remove
RUN gem install excon -v 0.44.4
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