mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-27 04:16:45 +01:00
fix locales
Signed-off-by: Jessica Frazelle <acidburn@docker.com>
This commit is contained in:
parent
274934ce6d
commit
e9a4c867d4
|
@ -17,6 +17,8 @@ ADD https://download1.rstudio.org/rstudio-0.99.484-amd64.deb /src/rstudio.deb
|
|||
|
||||
# Install Rstudio
|
||||
RUN apt-get update && apt-get install -y \
|
||||
ca-certificates \
|
||||
fcitx-frontend-qt5 \
|
||||
libedit2 \
|
||||
libgl1-mesa-dri \
|
||||
libgl1-mesa-glx \
|
||||
|
@ -35,19 +37,34 @@ RUN apt-get update && apt-get install -y \
|
|||
libtiff5 \
|
||||
libxcomposite1 \
|
||||
libxslt1.1 \
|
||||
littler \
|
||||
locales \
|
||||
r-base \
|
||||
r-base-core \
|
||||
r-base-dev \
|
||||
r-recommended \
|
||||
--no-install-recommends && \
|
||||
dpkg -i '/src/rstudio.deb' \
|
||||
--no-install-recommends \
|
||||
&& echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen \
|
||||
&& locale-gen en_US.utf8 \
|
||||
&& /usr/sbin/update-locale LANG=en_US.UTF-8 \
|
||||
&& dpkg -i '/src/rstudio.deb' \
|
||||
&& apt-get install -fy \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& rm -rf /src/*.deb \
|
||||
&& ln -f -s /usr/lib/rstudio/bin/rstudio /usr/bin/rstudio
|
||||
|
||||
ENV LC_ALL en_US.UTF-8
|
||||
ENV LANG en_US.UTF-8
|
||||
|
||||
# Set default CRAN repo
|
||||
RUN echo 'options(repos = c(CRAN = "https://cran.rstudio.com/"), download.file.method = "libcurl")' >> /etc/R/Rprofile.site
|
||||
RUN echo 'options(repos = c(CRAN = "https://cran.rstudio.com/"), download.file.method = "libcurl")' >> /etc/R/Rprofile.site \
|
||||
&& echo 'source("/etc/R/Rprofile.site")' >> /etc/littler.r \
|
||||
&& ln -s /usr/share/doc/littler/examples/install.r /usr/local/bin/install.r \
|
||||
&& ln -s /usr/share/doc/littler/examples/install2.r /usr/local/bin/install2.r \
|
||||
&& ln -s /usr/share/doc/littler/examples/installGithub.r /usr/local/bin/installGithub.r \
|
||||
&& ln -s /usr/share/doc/littler/examples/testInstalled.r /usr/local/bin/testInstalled.r \
|
||||
&& rm -rf /tmp/downloaded_packages/ /tmp/*.rds \
|
||||
&& echo '"\e[5~": history-search-backward' >> /etc/inputrc \
|
||||
&& echo '"\e[6~": history-search-backward' >> /etc/inputrc
|
||||
|
||||
# Autorun Rstudio
|
||||
ENTRYPOINT [ "rstudio" ]
|
||||
|
|
Loading…
Reference in New Issue
Block a user