33 lines
1.0 KiB
Docker
33 lines
1.0 KiB
Docker
FROM d4science/r-full:latest
|
|
|
|
|
|
ENV S6_VERSION=v2.1.0.2
|
|
ENV RSTUDIO_VERSION=2022.02.1+461
|
|
ENV DEFAULT_USER=rstudio
|
|
ENV PANDOC_VERSION=default
|
|
ENV PATH=/usr/lib/rstudio-server/bin:$PATH
|
|
|
|
|
|
RUN /rocker_scripts/install_rstudio.sh
|
|
RUN /rocker_scripts/install_pandoc.sh
|
|
|
|
# Add the mountpoint for the workspace
|
|
RUN mkdir /workspace
|
|
|
|
# This part comes from https://github.com/openanalytics/shinyproxy-rstudio-ide-demo/blob/master/Dockerfile
|
|
RUN echo "www-frame-origin=same" >> /etc/rstudio/disable_auth_rserver.conf
|
|
RUN echo "www-verify-user-agent=0" >> /etc/rstudio/disable_auth_rserver.conf
|
|
|
|
ADD 01_set_env.sh /etc/cont-init.d/01_set_env
|
|
ADD 02_userconf.sh /etc/cont-init.d/02_userconf
|
|
ADD 03_setup_root_path.sh /etc/cont-init.d/03_setup_root_path
|
|
|
|
# By default RStudio does not give access to all enviornment variables defined in the container (e.g. using ShinyProxy).
|
|
# Uncomment the next line, to change this behavior.
|
|
#ADD 04_copy_env.sh /etc/cont-init.d/04_copy_env
|
|
ADD 05_setup_rsession_parameters.sh /etc/cont-init.d/05_setup_rsession_parameters
|
|
|
|
EXPOSE 8787
|
|
|
|
CMD ["/init"]
|