File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # 1. Use R 4.4.2 (Ubuntu 22.04 Jammy)
2- FROM rocker/r-ver:4.4.2
1+ # 1. Use R 4.5.1 to match your Mac
2+ FROM rocker/r-ver:4.5.1
33
44# 2. Install system dependencies
5+ # Note: Ubuntu 24.04 (Noble) uses libicu74, matching R 4.5 binaries
56RUN apt-get update && apt-get install -y --no-install-recommends \
67 libxml2-dev libssl-dev libcurl4-openssl-dev \
78 libpng-dev libjpeg-dev zlib1g-dev libicu-dev \
8- glpk-utils libglpk-dev \
9- pandoc \
9+ libglpk-dev gfortran pandoc \
1010 && rm -rf /var/lib/apt/lists/*
1111
1212WORKDIR /project
1313
14- # 3. FORCE STABLE REPOS
15- # We add the Bioconductor repo override here to fix the 'fgsea' 3.21 error
16- ENV RENV_CONFIG_REPOS_OVERRIDE="https://packagemanager.posit.co/cran/__linux__/jammy/latest"
17- ENV RENV_BIOCONDUCTOR_VERSION="3.20"
14+ # 3. Use NOBLE (Ubuntu 24.04) binaries for R 4.5
15+ ENV RENV_CONFIG_REPOS_OVERRIDE="https://packagemanager.posit.co/cran/__linux__/noble/latest"
1816ENV RENV_DOWNLOAD_METHOD="libcurl"
19- ENV RENV_PATHS_LIBRARY="renv/library"
2017
21- # 4. Setup renv
18+ # 4. Setup and Restore
2219COPY renv.lock .Rprofile ./
2320COPY renv/activate.R renv/activate.R
2421RUN mkdir -p renv/library data
25-
26- # 5. Restore
27- # We detect cores to speed up the compilation of Bioc packages
2822RUN R -e "options(Ncpus = parallel::detectCores()); renv::restore()"
2923
3024COPY *.Rmd ./
You can’t perform that action at this time.
0 commit comments