Created
February 16, 2018 09:24
-
-
Save josh-leeming/78d7f3dc3e34bf40887f8ada78a33ad8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Start with Alpine base image | |
| FROM alpine:latest | |
| # Install wget and bash | |
| RUN apk update && apk add wget bash | |
| # download cuda | |
| RUN wget http://developer.download.nvidia.com/compute/cuda/7.5/Prod/local_installers/cuda_7.5.18_linux.run | |
| # Make the run file executable and extract | |
| RUN chmod +x cuda_*_linux.run | |
| RUN ./cuda_*_linux.run --tar mxvf | |
| # Add to path | |
| ENV PATH=/usr/local/cuda/bin:$PATH LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment