1- # 1. Use the Jammy-based image to match Posit's Ubuntu 22.04 binaries
2- FROM rocker/r-ver:4.4.2-jammy
1+ # 1. Use R 4.4.2 which is based on Ubuntu 22.04 (Jammy)
2+ # This provides libicu70 required by your stringi/Posit binaries.
3+ FROM rocker/r-ver:4.4.2
34
45# 2. Install system dependencies + Pandoc
56RUN apt-get update && apt-get install -y --no-install-recommends \
@@ -16,7 +17,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
1617WORKDIR /project
1718
1819# 3. FORCE BINARIES & PARALLELISM
19- # These binaries now match the OS (Jammy) perfectly, preventing 'stringi' errors
20+ # The repository URL for 'jammy' now aligns with the OS version of this image.
2021ENV RENV_CONFIG_REPOS_OVERRIDE="https://packagemanager.posit.co/cran/__linux__/jammy/latest"
2122ENV RENV_DOWNLOAD_METHOD="libcurl"
2223ENV RENV_PATHS_LIBRARY="renv/library"
@@ -27,12 +28,12 @@ COPY renv/activate.R renv/activate.R
2728RUN mkdir -p renv/library data
2829
2930# 5. Restore using all available CPU cores
31+ # This should now pull AMD64 binaries instantly on GitHub Actions.
3032RUN R -e "options(Ncpus = parallel::detectCores()); renv::restore()"
3133
32- # 6. Copy project assets (Ensure configuration.yml is NOT copied if you want to mount it at runtime)
34+ # 6. Copy project assets
3335COPY *.Rmd ./
3436COPY _site.ym[l] ./
35- # Optional: COPY configuration.yml configuration.yml (only if you want a baked-in default)
3637
3738# 7. Render
3839CMD ["R" , "-e" , "rmarkdown::render_site()" ]
0 commit comments