Skip to content

Instantly share code, notes, and snippets.

@xiw9
Created October 18, 2016 09:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xiw9/3e843866b499084b227bf6564ed28743 to your computer and use it in GitHub Desktop.
Save xiw9/3e843866b499084b227bf6564ed28743 to your computer and use it in GitHub Desktop.
Dockerfile-tensorflow
FROM xiw9/archlinux
MAINTAINER Xi Wang <xiwfdu@gmail.com>
LABEL com.nvidia.volumes.needed="nvidia_driver"
ENV CUDA_VERSION 8.0
LABEL com.nvidia.cuda.version="8.0"
RUN echo 'Server = http://mirrors.163.com/archlinux/$repo/os/$arch' > /etc/pacman.d/mirrorlist
RUN echo $' \n\
[archlinuxfr] \n\
SigLevel = Never \n\
Server = http://repo.archlinux.fr/$arch' >> /etc/pacman.conf
RUN pacman -Sy --noconfirm nano cuda yaourt python2-pip base-devel rsync
RUN pacman -Sd --nodeps --noconfirm nvidia-utils
RUN sed -i 's/EUID == 0/EUID == 100/g' /usr/bin/makepkg
RUN yaourt -S python2-numpy-openblas --noconfirm
RUN curl http://[your own mirror]/data/cudnn-8.0-linux-x64-v5.1.tgz > /tmp/cudnn-8.0-linux-x64-v5.1.tgz
RUN tar xvzf /tmp/cudnn-8.0-linux-x64-v5.1.tgz -C /opt
RUN ln -s /usr/bin/python2 /usr/bin/python
RUN pip2 install --upgrade http://bigvid.fudan.edu.cn/data/tensorflow-0.11.0rc0-py2-none-any.whl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment