Skip to content

Instantly share code, notes, and snippets.

@josh-leeming
Created February 16, 2018 09:24
Show Gist options
  • Select an option

  • Save josh-leeming/78d7f3dc3e34bf40887f8ada78a33ad8 to your computer and use it in GitHub Desktop.

Select an option

Save josh-leeming/78d7f3dc3e34bf40887f8ada78a33ad8 to your computer and use it in GitHub Desktop.
# 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