Skip to content

Commit 29c3523

Browse files
committed
arm64 arch docker image request #2568
1 parent 47ff6c6 commit 29c3523

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

Dockerfile.arm64v8

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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+

0 commit comments

Comments
 (0)