-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
33 lines (26 loc) · 965 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
28
29
30
31
32
33
FROM ubuntu:latest
LABEL maintainer "[email protected]"
ENV DOCKER_HOST unix:///tmp/docker.sock
ENV DOCKER_GEN_VERSION 0.7.3
ENV DEBIAN_FRONTEND noninteractive
VOLUME /var/lib/tor
WORKDIR /app
RUN apt-get update && \
apt-get -y --no-install-recommends install \
tor \
wget \
ca-certificates \
supervisor
RUN wget https://github.com/jwilder/docker-gen/releases/download/$DOCKER_GEN_VERSION/docker-gen-linux-amd64-$DOCKER_GEN_VERSION.tar.gz && \
tar -C /usr/local/bin -xvzf docker-gen-linux-amd64-$DOCKER_GEN_VERSION.tar.gz && \
rm docker-gen-linux-amd64-$DOCKER_GEN_VERSION.tar.gz
RUN apt-get clean && \
rm -fr /var/lib/apt/lists/* \
/tmp/* \
/var/tmp/*
COPY torrc.tmpl /app/torrc.tmpl
COPY supervisord.conf /app/supervisord.conf
COPY docker-entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD ["supervisord", "-c", "/app/supervisord.conf"]