Skip to content

Commit c541bd7

Browse files
committed
updated dockerfile to reflect jammy image
1 parent 187ba6b commit c541bd7

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

Dockerfile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
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
56
RUN 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 \
1617
WORKDIR /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.
2021
ENV RENV_CONFIG_REPOS_OVERRIDE="https://packagemanager.posit.co/cran/__linux__/jammy/latest"
2122
ENV RENV_DOWNLOAD_METHOD="libcurl"
2223
ENV RENV_PATHS_LIBRARY="renv/library"
@@ -27,12 +28,12 @@ COPY renv/activate.R renv/activate.R
2728
RUN 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.
3032
RUN 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
3335
COPY *.Rmd ./
3436
COPY _site.ym[l] ./
35-
# Optional: COPY configuration.yml configuration.yml (only if you want a baked-in default)
3637

3738
# 7. Render
3839
CMD ["R", "-e", "rmarkdown::render_site()"]

0 commit comments

Comments
 (0)