-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
40 lines (32 loc) · 1.26 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
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
## 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