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.
2019-12-26 18:21:17 +00:00
|
|
|
FROM alpine:latest as fetcher
|
|
|
|
|
|
|
|
WORKDIR /tmp
|
2020-01-10 15:37:21 +00:00
|
|
|
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
|
2019-12-26 18:21:17 +00:00
|
|
|
|
|
|
|
# Switch to pypy after https://bitbucket.org/pypy/pypy/commits/e7f5d75f3f87 fix works in upstream
|
|
|
|
FROM python:latest
|
|
|
|
WORKDIR /app
|
|
|
|
RUN useradd -lM zeronet
|
2020-01-10 15:37:21 +00:00
|
|
|
COPY --from=fetcher /tmp/ZeroNet/* ./
|
|
|
|
COPY --from=fetcher /tmp/pip.conf /etc/pip.conf
|
2019-12-26 18:21:17 +00:00
|
|
|
RUN pip install -r requirements.txt
|
|
|
|
|
|
|
|
EXPOSE 43110
|
|
|
|
ENTRYPOINT ["python"]
|
|
|
|
CMD ["/app/zeronet.py"]
|