1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-12 11:14:57 +02:00
dockerfiles/proxyhub/Dockerfile

45 lines
1.2 KiB
Docker
Raw Normal View History

2015-03-19 09:21:37 +02:00
#
# Dockerfile for ProxyHub
#
FROM ubuntu:14.04
2017-05-08 01:05:07 +02:00
MAINTAINER kev <noreply@easypi.pro>
2015-03-19 09:21:37 +02:00
RUN apt-get update
2015-03-19 17:37:55 +02:00
RUN apt-get install -y build-essential pdnsd haproxy polipo nginx python
2015-03-19 09:21:37 +02:00
RUN apt-get clean
ADD ./haproxy.cfg /etc/haproxy/
2015-04-22 09:54:40 +02:00
ADD ./pdnsd.conf /etc/
2015-03-19 17:37:55 +02:00
ADD ./polipo.conf /etc/polipo/config
2015-04-22 09:54:40 +02:00
ADD ./shadowsocks.json /etc/
ADD ./supervisord.conf /etc/supervisor/
ADD ./services.ini /etc/supervisor/conf.d/
2015-03-19 09:21:37 +02:00
2015-04-22 09:54:40 +02:00
ADD http://stedolan.github.io/jq/download/linux64/jq /usr/local/bin/
ADD https://bootstrap.pypa.io/get-pip.py /tmp/pkgs/
2015-03-19 09:21:37 +02:00
ADD https://download.libsodium.org/libsodium/releases/libsodium-1.0.2.tar.gz /tmp/pkgs/
ADD http://download.dnscrypt.org/dnscrypt-proxy/dnscrypt-proxy-1.4.3.tar.gz /tmp/pkgs/
WORKDIR /tmp/pkgs/
2015-04-22 10:52:29 +02:00
RUN chmod +x /usr/local/bin/jq
2015-03-19 09:30:38 +02:00
RUN python get-pip.py
2015-03-19 09:29:06 +02:00
RUN pip install supervisor shadowsocks
2015-03-19 09:21:37 +02:00
RUN tar xzf libsodium-1.0.2.tar.gz && \
cd libsodium-1.0.2 && \
./configure && \
make && \
make install
RUN echo /usr/local/lib > /etc/ld.so.conf.d/local.conf && ldconfig
RUN tar xzf dnscrypt-proxy-1.4.3.tar.gz && \
cd dnscrypt-proxy-1.4.3 && \
./configure && \
make && \
make install
WORKDIR /
RUN rm -r /tmp/pkgs/
2015-03-20 16:40:36 +02:00
EXPOSE 53/udp 53/tcp 80 1080 8123 9001
2015-03-19 09:21:37 +02:00
CMD supervisord -n -c /etc/supervisor/supervisord.conf