Forking what is left of ZeroNet and hopefully adding an AT Proto Frontend/Proxy
at main 33 lines 777 B view raw
1FROM alpine:3.11 2 3#Base settings 4ENV HOME /root 5 6COPY requirements.txt /root/requirements.txt 7 8#Install ZeroNet 9RUN 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 15RUN python3 -V \ 16 && python3 -m pip list \ 17 && tor --version \ 18 && openssl version 19 20#Add Zeronet source 21COPY . /root 22VOLUME /root/data 23 24#Control if Tor proxy is started 25ENV ENABLE_TOR false 26 27WORKDIR /root 28 29#Set upstart command 30CMD (! ${ENABLE_TOR} || tor&) && python3 zeronet.py --ui_ip 0.0.0.0 --fileserver_port 26552 31 32#Expose ports 33EXPOSE 43110 26552