forked from 39ff/docker-rotating-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
31 lines (30 loc) · 1.03 KB
/
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
28
29
30
31
FROM centos:centos7
MAINTAINER kouhei <kouhei@cse.jp>
RUN yum update -y
RUN yum install gcc wget -y
RUN yum install squid -y
RUN yum install epel-release -y
RUN rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
RUN yum install --enablerepo=remi,remi-php72 php php-devel php-mbstring -y
RUN wget "http://www.delegate.org/anonftp/DeleGate/bin/linux/9.9.13/linux2.6-dg9_9_13.tar.gz"
RUN tar xf linux2.6-dg9_9_13.tar.gz
RUN mv ./dg9_9_13/DGROOT/bin/dg9_9_13 /usr/local/bin/delegate
RUN useradd delegate
WORKDIR /home/delegate
RUN cp /etc/squid/squid.conf /home/delegate/squid.conf
RUN chown delegate:delegate /home/delegate/squid.conf
RUN sed -i '1s/^/acl all src all\n/' /home/delegate/squid.conf
ADD start.php ./
RUN chmod +x ./start.php
RUN chown -R delegate:delegate /var/log/squid/
RUN chown delegate:delegate ./start.php
USER delegate
RUN mkdir config
ADD delegateBase.conf ./
ADD proxyList.txt ./proxylist/
ADD anonsquid.conf ./
ADD Allowed_IP.txt ./
ADD acl.conf ./
ADD passwd ./
ENTRYPOINT ["/home/delegate/start.php"]
EXPOSE 3128