This repository has been archived on 2020-04-25. You can view files and clone it, but cannot push or open issues or pull requests.
zeronet-docker/build/Dockerfile

19 lines
611 B
Docker

FROM alpine:latest as fetcher
WORKDIR /tmp
RUN apk add --no-cache --update git curl ca-certificates
RUN curl -OL https://raw.githubusercontent.com/SuperSandro2000/docker-images/master/zeronet/files/pip.conf
RUN git clone https://github.com/HelloZeroNet/ZeroNet.git ZeroNet
# Switch to pypy after https://bitbucket.org/pypy/pypy/commits/e7f5d75f3f87 fix works in upstream
FROM python:latest
WORKDIR /app
RUN useradd -lM zeronet
COPY --from=fetcher /tmp/ZeroNet/* ./
COPY --from=fetcher /tmp/pip.conf /etc/pip.conf
RUN pip install -r requirements.txt
EXPOSE 43110
ENTRYPOINT ["python"]
CMD ["/app/zeronet.py"]