ZeroNet/Dockerfile

27 lines
610 B
Docker
Raw Normal View History

FROM alpine:3.8
2015-05-27 15:13:36 +02:00
#Base settings
ENV HOME /root
2016-03-17 20:12:30 +01:00
#Install ZeroNet
RUN apk --no-cache --no-progress add musl-dev gcc python python-dev py2-pip tor \
&& pip install --no-cache-dir gevent msgpack \
&& apk del musl-dev gcc python-dev py2-pip \
&& echo "ControlPort 9051" >> /etc/tor/torrc \
&& echo "CookieAuthentication 1" >> /etc/tor/torrc
2015-05-27 15:13:36 +02:00
#Add Zeronet source
2017-07-17 16:08:18 +02:00
COPY . /root
2016-03-02 21:11:56 +01:00
VOLUME /root/data
2015-05-27 15:13:36 +02:00
#Control if Tor proxy is started
ENV ENABLE_TOR false
2017-07-17 16:08:18 +02:00
WORKDIR /root
2015-05-27 15:13:36 +02:00
#Set upstart command
2018-04-18 04:10:11 +02:00
CMD (! ${ENABLE_TOR} || tor&) && python zeronet.py --ui_ip 0.0.0.0 --fileserver_port 26552
2015-05-27 15:13:36 +02:00
#Expose ports
2018-04-18 04:10:11 +02:00
EXPOSE 43110 26552