File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change 1
1
FROM python:3.12
2
2
3
3
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
5
5
6
6
# Install Node.js 20.x from NodeSource
7
7
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
@@ -13,17 +13,13 @@ ENV PIP_DEFAULT_TIMEOUT=100 \
13
13
JUPYTER_CONFIG_PATH="/root/.jupyter" \
14
14
IPYTHON_CONFIG_PATH="/root/.ipython" \
15
15
SERVER_PATH="/root/.server" \
16
- R_VERSION=4.4.2
17
-
18
- ENV R_HOME=/opt/R/${R_VERSION} \
19
- JAVA_HOME=/opt/java/openjdk
16
+ JAVA_HOME=/opt/java/openjdk
20
17
21
18
# Install Jupyter
22
19
COPY ./requirements.txt requirements.txt
23
20
RUN pip install --no-cache-dir -r requirements.txt && ipython kernel install --name "python3" --user
24
21
25
22
# 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
27
23
RUN R -e "install.packages('IRkernel', repos='https://cloud.r-project.org')"
28
24
RUN R -e "IRkernel::installspec(user = FALSE, name = 'r', displayname = 'R')"
29
25
You can’t perform that action at this time.
0 commit comments