-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
45 lines (37 loc) · 1.44 KB
/
Dockerfile
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
34
35
36
37
38
39
40
41
42
43
44
45
ARG BASE_IMAGE=rocker/rstudio:latest
FROM $BASE_IMAGE
# rocker/tidyverse:3.6.3
# bioconductor/bioconductor_docker:devel
LABEL org.opencontainers.image.source https://github.com/MaastrichtU-IDS/rstudio
# Rocker Dockerfile: https://github.com/rocker-org/rocker-versioned/blob/master/rstudio/3.6.3.Dockerfile
ENV ADD=shiny
# ENV ROOT=true
## Install Shiny server
RUN /rocker_scripts/install_shiny_server.sh
## For R<4 : https://github.com/rocker-org/rocker-versioned/blob/master/rstudio/add_shiny.sh
# COPY add_shiny.sh /etc/cont-init.d/add
# RUN bash /etc/cont-init.d/add
## Change ownership of the workspace to allow R/W of PVCs
# USER root
# COPY init_userconf.sh /rocker_scripts/init_userconf.sh
# RUN /rocker_scripts/install_rstudio.sh
# USER rstudio
## Install ZSH cause permissions issues
# USER root
# RUN apt-get update -q && \
# apt-get install -y zsh
# RUN chown -R rstudio:rstudio /usr/local
# RUN chown -R rstudio:rstudio /run
# USER rstudio
## Install Oh My ZSH! and custom theme
# RUN sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# RUN wget -O /home/$NB_USER/.oh-my-zsh/custom/themes/biratime.zsh-theme https://raw.github.com/vemonet/biratime/main/biratime.zsh-theme
# RUN sed -i 's/^ZSH_THEME=".*"$/ZSH_THEME="biratime"/g' ~/.zshrc
# RUN echo 'setopt NO_HUP' >> ~/.zshrc
## Set default shell to ZSH
# ENV SHELL=/bin/zsh
# USER root
# RUN chsh -s /bin/zsh
# USER rstudio
# Expose Shiny server
EXPOSE 3838