Dockerfile 669 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Alternative Rocker compatible with Apple M1
FROM prairielearn/workspace-rstudio:latest

# Change root user
USER 0

# Update package list
RUN apt-get update

# Install X11 library for ggplot2
RUN apt-get install -y libxt6

# Install Japanese fonts and language
RUN apt-get install -y \
    fonts-ipaexfont \
    fonts-noto-cjk \
    language-pack-ja

# Set language to Japanese
ENV LC_ALL=ja_JP.UTF-8
ENV LANG=ja_JP.UTF-8

# Set locale to Japanese
RUN locale-gen ja_JP.UTF-8

# Install R packages
RUN /rocker_scripts/install_tidyverse.sh
RUN install2.r -e -s -n -1 \
    conflicted \
 && rm -rf /tmp/downloaded_packages/ /tmp/*.rds

# Change rstudio user
USER rstudio