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"]