-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrstudio.Dockerfile
36 lines (29 loc) · 1.11 KB
/
rstudio.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
FROM gitpod/workspace-python:2023-03-24-22-45-37
USER root
# Install R
RUN wget -qO- https://cloud.r-project.org/bin/linux/ubuntu/marutter_pubkey.asc |\
tee -a /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc && \
add-apt-repository "deb https://cloud.r-project.org/bin/linux/ubuntu $(lsb_release -cs)-cran40/" && \
apt-get update && \
apt-get install -y gdebi-core r-base libharfbuzz-dev libfribidi-dev
# Install RStudio
ARG RSTUDIO="rstudio-server-2023.03.0-386-amd64.deb"
RUN wget "https://download2.rstudio.org/server/jammy/amd64/$RSTUDIO" && \
gdebi -n "$RSTUDIO" && \
rm -rf "$RSTUDIO"
# Configure Rstudio for gitpod
RUN echo "session-default-working-dir=/workspace" | tee -a /etc/rstudio/rsession.conf && \
echo "session-default-new-project-dir=/workspace" | tee -a /etc/rstudio/rsession.conf && \
echo "gitpod:gitpod" | chpasswd
# Install tidyverse
RUN R -e 'install.packages(c("tidyverse", "reticulate"))'
USER gitpod
# Python packages for scientific programming
RUN pip install --no-cache-dir \
numpy \
pandas \
scipy \
scikit_learn \
matplotlib \
jupyterlab \
awscli