1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/proxyhub/Dockerfile

43 lines
1.1 KiB
Docker
Raw Normal View History

2015-03-19 09:21:37 +02:00
#
# Dockerfile for ProxyHub
#
FROM ubuntu:14.04
MAINTAINER kev <noreply@datageek.info>
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 ./supervisord.conf /etc/supervisor/
2015-03-19 17:44:23 +02:00
ADD ./services.ini /etc/supervisor/conf.d/
2015-03-19 09:21:37 +02:00
ADD ./pdnsd.conf /etc/
ADD ./shadowsocks /etc/shadowsocks
ADD ./haproxy.cfg /etc/haproxy/
2015-03-19 17:37:55 +02:00
ADD ./polipo.conf /etc/polipo/config
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/
2015-03-19 09:29:06 +02:00
ADD https://bootstrap.pypa.io/get-pip.py /tmp/pkgs/
2015-03-19 09:21:37 +02:00
WORKDIR /tmp/pkgs/
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-19 17:37:55 +02:00
EXPOSE 80 1080 8123 9001
2015-03-19 09:21:37 +02:00
CMD supervisord -n -c /etc/supervisor/supervisord.conf