Update/rewrite docker files
This commit is contained in:
parent
47db0898e2
commit
92eb6c8ca1
10 changed files with 111 additions and 59 deletions
31
docker/znctor.Dockerfile
Normal file
31
docker/znctor.Dockerfile
Normal file
|
@ -0,0 +1,31 @@
|
|||
FROM python:3.12-alpine
|
||||
|
||||
RUN apk --update --no-cache --no-progress add git gcc libffi-dev musl-dev make openssl g++ autoconf automake libtool
|
||||
RUN apk add tor
|
||||
|
||||
RUN echo "ControlPort 9051" >> /etc/tor/torrc
|
||||
RUN echo "CookieAuthentication 1" >> /etc/tor/torrc
|
||||
|
||||
RUN adduser -u 1600 -D service-0net
|
||||
|
||||
USER service-0net:service-0net
|
||||
|
||||
WORKDIR /home/service-0net
|
||||
|
||||
COPY requirements.txt .
|
||||
|
||||
RUN python3 -m pip install -r requirements.txt
|
||||
|
||||
RUN echo "tor &" > start.sh
|
||||
RUN echo "python3 zeronet.py --ui_ip '*' --fileserver_port 26552" >> start.sh
|
||||
RUN chmod +x start.sh
|
||||
|
||||
# the part below is updated with source updates
|
||||
|
||||
COPY . .
|
||||
|
||||
ENTRYPOINT ./start.sh
|
||||
|
||||
CMD main
|
||||
|
||||
EXPOSE 43110 26552
|
Loading…
Add table
Add a link
Reference in a new issue