| |
|
| | |
| |
|
| | FROM ubuntu:18.04 AS numpy-docs-build |
| |
|
| | LABEL maintainer="unknownue <unknownue@outlook.com>" |
| | LABEL description="An docker environment to build offline Numpy Docs" |
| | LABEL numpy-version="1.18.1" |
| | LABEL python-version="3.6.x" |
| | LABEL license="MIT" |
| |
|
| | ARG NUMPY_VERSION=1.18.1 |
| |
|
| | ENV DEBIAN_FRONTEND=noninteractive |
| |
|
| | WORKDIR /root/ |
| |
|
| | ENV PATH "/root/usr/bin:${PATH}" |
| |
|
| | RUN apt update && apt upgrade -y && \ |
| | apt install -y --no-install-recommends git wget build-essential ca-certificates && \ |
| | apt clean |
| |
|
| | |
| | RUN apt install -y --no-install-recommends python3.6 python3-distutils && \ |
| | wget https://bootstrap.pypa.io/get-pip.py && python3.6 get-pip.py && \ |
| | apt clean && \ |
| | ln -sf python3.6 /usr/bin/python && ln -sf pip3 /usr/bin/pip && \ |
| | pip3 install --upgrade pip && \ |
| | pip install --no-cache-dir numpy==$NUMPY_VERSION sphinx==2.4.2 scipy==1.4.1 ipython Matplotlib numpydoc |
| |
|
| | |
| | RUN apt install -y --no-install-recommends latexmk && \ |
| | apt install -y --no-install-recommends texlive-latex-extra |
| |
|
| | RUN git clone https://github.com/numpy/numpy.git && cd numpy && \ |
| | git checkout tags/v$NUMPY_VERSION && \ |
| | git submodule init && \ |
| | git submodule update |
| |
|
| | CMD ["bash"] |
| |
|