Create a gist now

Instantly share code, notes, and snippets.

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