FROM pytorch/pytorch:0.4_cuda9_cudnn7WORKDIR /workspace# uninstall Apex if presentRUN 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 ApexRUN SHA=43d1ae08 git clone https://github.com/NVIDIA/apex.gitWORKDIR /workspace/apexRUN python setup.py installWORKDIR /workspace