Skip to content

Instantly share code, notes, and snippets.

@winstxnhdw
Created April 1, 2023 11:31
Show Gist options
  • Save winstxnhdw/20e620f5b70741c03851ea3d4a8df84b to your computer and use it in GitHub Desktop.
Save winstxnhdw/20e620f5b70741c03851ea3d4a8df84b to your computer and use it in GitHub Desktop.
Dockerfile for building an interactive and stable R environment.
FROM ubuntu:rolling
ENV DEBIAN_FRONTEND noninteractive
RUN apt update
RUN apt upgrade
RUN apt install r-base -y
RUN apt install python3-pip -y
RUN pip install -U radian
RUN echo "alias r='radian'" >> ~/.bashrc
RUN R -e "install.packages('languageserver')"
RUN R -e "install.packages('httpgd')"
# docker build -t r-env .
# docker run --rm -it r-env
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment