Sign inSign up

tokyor/rstudio

By tokyor

Updated over 8 years ago

RStudio server environment for Japanese users based on rocker/hadleyverse

Image
6

1.8K

Dockerfile
FROM rocker/tidyverse:latest

# Change environment to Japanese(Character and DateTime)
ENV LANG ja_JP.UTF-8
ENV LC_ALL ja_JP.UTF-8
RUN sed -i '$d' /etc/locale.gen \
  && echo "ja_JP.UTF-8 UTF-8" >> /etc/locale.gen \
	&& locale-gen ja_JP.UTF-8 \
	&& /usr/sbin/update-locale LANG=ja_JP.UTF-8 LANGUAGE="ja_JP:ja"
RUN /bin/bash -c "source /etc/default/locale"
RUN ln -sf  /usr/share/zoneinfo/Asia/Tokyo /etc/localtime

# Install ipaexfont
RUN apt-get update && apt-get install -y \
  fonts-ipaexfont

# Install packages
RUN Rscript -e "install.packages(c('githubinstall', 'ranger'))"

CMD ["/init"]