17 lines
488 B
Docker
17 lines
488 B
Docker
FROM alpine:latest as fetcher
|
|
|
|
WORKDIR /tmp
|
|
RUN apk add --no-cache --update curl tar ca-certificates
|
|
RUN curl -L https://github.com/HelloZeroNet/ZeroNet/archive/py3/ZeroNet-py3.tar.gz | tar xvpz
|
|
|
|
# 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-py3/* ./
|
|
RUN pip install -r requirements.txt
|
|
|
|
EXPOSE 43110
|
|
ENTRYPOINT ["python"]
|
|
CMD ["/app/zeronet.py"]
|