Skip to content

Commit 8238aa0

Browse files
committed
aligned dockerfile with mac version
1 parent a75d57f commit 8238aa0

1 file changed

Lines changed: 7 additions & 13 deletions

File tree

Dockerfile

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,24 @@
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
56
RUN 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

1212
WORKDIR /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"
1816
ENV RENV_DOWNLOAD_METHOD="libcurl"
19-
ENV RENV_PATHS_LIBRARY="renv/library"
2017

21-
# 4. Setup renv
18+
# 4. Setup and Restore
2219
COPY renv.lock .Rprofile ./
2320
COPY renv/activate.R renv/activate.R
2421
RUN mkdir -p renv/library data
25-
26-
# 5. Restore
27-
# We detect cores to speed up the compilation of Bioc packages
2822
RUN R -e "options(Ncpus = parallel::detectCores()); renv::restore()"
2923

3024
COPY *.Rmd ./

0 commit comments

Comments
 (0)