File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change
1
+ FROM alpine:3.12
2
+
3
+ #Base settings
4
+ ENV HOME /root
5
+
6
+ COPY requirements.txt /root/requirements.txt
7
+
8
+ #Install ZeroNet
9
+ RUN apk --update --no-cache --no-progress add python3 python3-dev gcc libffi-dev musl-dev make tor openssl \
10
+ && pip3 install -r /root/requirements.txt \
11
+ && apk del python3-dev gcc libffi-dev musl-dev make \
12
+ && echo "ControlPort 9051" >> /etc/tor/torrc \
13
+ && echo "CookieAuthentication 1" >> /etc/tor/torrc
14
+
15
+ RUN python3 -V \
16
+ && python3 -m pip list \
17
+ && tor --version \
18
+ && openssl version
19
+
20
+ #Add Zeronet source
21
+ COPY . /root
22
+ VOLUME /root/data
23
+
24
+ #Control if Tor proxy is started
25
+ ENV ENABLE_TOR false
26
+
27
+ WORKDIR /root
28
+
29
+ #Set upstart command
30
+ CMD (! ${ENABLE_TOR} || tor&) && python3 zeronet.py --ui_ip 0.0.0.0 --fileserver_port 26552
31
+
32
+ #Expose ports
33
+ EXPOSE 43110 26552
34
+
You can’t perform that action at this time.
0 commit comments