Skip to content

Instantly share code, notes, and snippets.

@kashitan
Last active September 30, 2016 09:40
Show Gist options
  • Save kashitan/a7da715db01bda4aeb44c253876dba25 to your computer and use it in GitHub Desktop.
Save kashitan/a7da715db01bda4aeb44c253876dba25 to your computer and use it in GitHub Desktop.
nvidia-docker上でTensorFlow for Rを実行するDockerfile
FROM kashitan/tensorflow:latest
MAINTAINER Takashi Kitano <@kashitan>
# Install R
RUN yum install -y R wget initscripts && \
yum clean all
# Install RStudio-Server
RUN wget https://download2.rstudio.org/rstudio-server-rhel-0.99.903-x86_64.rpm && \
yum install -y --nogpgcheck rstudio-server-rhel-0.99.903-x86_64.rpm && \
rm rstudio-server-rhel-0.99.903-x86_64.rpm
# Work Around -> error: /usr/lib64/libpython3.4.so: cannot open shared object file: No such file or directory
RUN ln -s /usr/lib64/libpython3.4m.so.1.0 /usr/lib64/libpython3.4.so
# Add User for RStudio-Server
ARG PASSWORD=""
RUN useradd -d /home/centos -m -g users centos && \
echo "${PASSWORD}" | passwd --stdin centos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment