tor-router/Dockerfile

43 lines
836 B
Docker
Raw Normal View History

2015-07-06 18:26:31 +00:00
FROM php:5.4.42-cli
2015-07-06 14:21:09 +00:00
VOLUME /var/lib/docker
2015-07-06 18:26:31 +00:00
VOLUME /tmp
2015-07-06 14:22:38 +00:00
COPY ./install_docker.sh /usr/local/bin/install_docker
RUN chmod +x /usr/local/bin/install_docker
2015-07-06 14:21:09 +00:00
RUN bash /usr/local/bin/install_docker
2015-07-06 14:25:18 +00:00
COPY docker /usr/bin/docker
2015-07-06 18:26:31 +00:00
COPY ./dind/wrapdocker /usr/local/bin/wrapdocker
2015-07-06 14:21:09 +00:00
RUN chmod +x /usr/local/bin/wrapdocker
COPY ./shutdown.sh /usr/local/bin/stop-tor-router
2015-07-06 14:40:10 +00:00
COPY ./startup.sh /usr/local/bin/start-tor-router
2015-07-06 14:21:09 +00:00
COPY ./tor-router.sh /usr/local/bin/tor-router
COPY ./new_ip.sh /usr/local/bin/new-ip
2015-07-06 18:26:31 +00:00
COPY ./haproxy-config.php /opt/haproxy-config.php
2015-07-06 14:21:09 +00:00
RUN chmod -v +x /usr/local/bin/stop-tor-router
RUN chmod -v +x /usr/local/bin/start-tor-router
RUN chmod -v +x /usr/local/bin/tor-router
RUN chmod -v +x /usr/local/bin/new-ip
ENV TOR_INSTANCES 5
2015-07-06 14:40:10 +00:00
ENV TOR_PORT 9050
ENV INSTANCE_PREFIX tor-
2015-07-06 14:21:09 +00:00
CMD ["/usr/local/bin/tor-router"]