Skip to content

Commit 2c387e8

Browse files
committed
update r kernel installation, remove dependency on rstudio cdn
1 parent 4cdc762 commit 2c387e8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

template/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM python:3.12
22

33
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y --no-install-recommends \
4-
build-essential curl git util-linux jq sudo fonts-noto-cjk
4+
build-essential curl git util-linux jq sudo fonts-noto-cjk r-base
55

66
# Install Node.js 20.x from NodeSource
77
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
@@ -23,7 +23,6 @@ COPY ./requirements.txt requirements.txt
2323
RUN pip install --no-cache-dir -r requirements.txt && ipython kernel install --name "python3" --user
2424

2525
# R Kernel
26-
RUN curl -O https://cdn.rstudio.com/r/debian-12/pkgs/r-${R_VERSION}_1_amd64.deb && sudo apt-get update && sudo apt-get install -y ./r-${R_VERSION}_1_amd64.deb && ln -s ${R_HOME}/bin/R /usr/bin/R
2726
RUN R -e "install.packages('IRkernel', repos='https://cloud.r-project.org')"
2827
RUN R -e "IRkernel::installspec(user = FALSE, name = 'r', displayname = 'R')"
2928

0 commit comments

Comments
 (0)