"Fossies" - the Fresh Open Source Software Archive

Member "pytorch-1.8.2/tools/docker/Dockerfile_runtime" (23 Jul 2021, 985 Bytes) of package /linux/misc/pytorch-1.8.2.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 FROM ubuntu:16.04 
    2 
    3 LABEL com.nvidia.volumes.needed="nvidia_driver"
    4 RUN apt-get update && apt-get install -y --no-install-recommends \
    5          build-essential \ 
    6          git \
    7          curl \
    8          ca-certificates \
    9          libjpeg-dev \
   10          libpng-dev && \
   11      rm -rf /var/lib/apt/lists/*
   12 
   13 RUN curl -o ~/miniconda.sh -O  https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh  && \
   14      chmod +x ~/miniconda.sh && \
   15      ~/miniconda.sh -b -p /opt/conda && \     
   16      rm ~/miniconda.sh && \
   17      /opt/conda/bin/conda install conda-build && \
   18      /opt/conda/bin/conda install numpy pyyaml scipy ipython&& \
   19      /opt/conda/bin/conda clean -ya 
   20 ENV PATH /opt/conda/bin:$PATH
   21 RUN conda install pytorch torchvision cuda90 -c pytorch && /opt/conda/bin/conda clean -ya
   22 
   23 ENV NVIDIA_VISIBLE_DEVICES all
   24 ENV NVIDIA_DRIVER_CAPABILITIES compute,utility
   25 ENV LD_LIBRARY_PATH /usr/local/nvidia/lib:/usr/local/nvidia/lib64
   26 
   27 WORKDIR /workspace
   28 RUN chmod -R a+w /workspace