forked from HelloZeroNet/ZeroNet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
32 lines (24 loc) · 755 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
FROM ubuntu:16.04
MAINTAINER Felix Imobersteg <[email protected]>
#Base settings
ENV DEBIAN_FRONTEND noninteractive
ENV HOME /root
#Install ZeroNet
RUN \
apt-get update -y; \
apt-get -y install msgpack-python python-gevent python-pip python-dev tor; \
pip install msgpack-python --upgrade; \
apt-get clean -y; \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*; \
echo "ControlPort 9051" >> /etc/tor/torrc; \
echo "CookieAuthentication 1" >> /etc/tor/torrc
#Add Zeronet source
ADD . /root
VOLUME /root/data
#Control if Tor proxy is started
ENV ENABLE_TOR false
#Set upstart command
CMD cd /root && (! ${ENABLE_TOR} || /etc/init.d/tor start) && python zeronet.py --ui_ip 0.0.0.0
#Expose ports
EXPOSE 43110
EXPOSE 15441