-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (22 loc) · 759 Bytes
/
Dockerfile
File metadata and controls
29 lines (22 loc) · 759 Bytes
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
# Use a base image that includes R
FROM rocker/r-ver:4.2.2
# Install RStudio Desktop and dependencies
RUN apt-get update -y && apt-get install -y \
libcurl4-openssl-dev \
libssl-dev \
libxml2-dev \
gdebi-core \
&& apt-get clean
RUN chown -R codespace:codespace /workspace
# Download and install RStudio Desktop
RUN wget https://download1.rstudio.org/desktop/ubuntu20/amd64/rstudio-2022.12.0-353-amd64.deb && \
gdebi -n rstudio-2022.12.0-353-amd64.deb && \
rm rstudio-2022.12.0-353-amd64.deb
# Install the tidyverse and other R dependencies
RUN R -e "install.packages('tidyverse')"
# Set the working directory
WORKDIR /workspace
# Expose RStudio Server port
EXPOSE 8787
# Start RStudio Server
CMD ["rstudio-server", "start"]