Dockerfile 429 Bytes
Newer Older
1
2
# Base image must at least have pytorch and CUDA installed.
FROM <base image>
3
4
5
WORKDIR /workspace
# uninstall Apex if present
RUN pip uninstall -y apex || :
6
7
8
# SHA is something the user can touch to force recreation of this Docker layer, 
# and therefore force cloning of the latest version of Apex
RUN SHA=ToUcHMe git clone https://github.com/NVIDIA/apex.git
9
10
11
WORKDIR /workspace/apex
RUN python setup.py install
WORKDIR /workspace