Dockerfile 465 Bytes
Newer Older
Michael Carilli's avatar
Michael Carilli committed
1
# Base image must at least have nvcc and CUDA installed.
2
FROM gitlab-dl.nvidia.com:5005/dgx/pytorch:18.04-py3-devel
3
4
5
6
7
WORKDIR /workspace
# uninstall Apex if present
RUN pip uninstall -y apex || :
# SHA is something the user can alter to force recreation of this Docker layer, 
# and therefore force cloning the latest version of Apex
8
RUN SHA=43f1ae08 git clone https://github.com/NVIDIA/apex.git
9
10
11
WORKDIR /workspace/apex
RUN python setup.py install
WORKDIR /workspace