Skip to content

feat: slim down minimal image + docs on rocker-versioned2 mix-and-match#129

Merged
Robinlovelace merged 1 commit into
masterfrom
slim-minimal-image-v2
Jun 7, 2026
Merged

feat: slim down minimal image + docs on rocker-versioned2 mix-and-match#129
Robinlovelace merged 1 commit into
masterfrom
slim-minimal-image-v2

Conversation

@Robinlovelace

Copy link
Copy Markdown
Contributor

Summary

Reduces bloat in the minimal image and documents how users can build their own leaner images using rocker-versioned2.

Changes to minimal/Dockerfile

  • Removes Quarto install (saves ~500MB) and arf (already removed in revert: remove arf (Alternative R Frontend) from all images, upgrade to R 4.6.0 #128)
  • Purges postgis and netcdf-bin from the rocker base image
  • Installs only geocompkg Imports (sf, terra, spData, units, dplyr, languageserver, methods) instead of the full package + Suggests
  • Strips debug symbols from RSPM binary libraries (saves ~20-30% on R package size)
  • Consolidates RUN layers and cleans apt caches

New file: `minimal-slim/Dockerfile'

Reference Dockerfile showing how to build a lean geospatial R image from rocker/r-ver without RStudio, Quarto, or heavy CLI tools.

Documentation

New section in README covering rocker-versioned2 modular scripts and suggested upstream improvements for the Rocker project.

Closes #123, supersedes #124.

- minimal/Dockerfile: remove Quarto, purge postgis/netcdf-bin, install
  only geocompkg Imports (not all Suggests), strip R package debug
  symbols, consolidate RUN layers, remove arf (already on master)
- minimal-slim/Dockerfile: reference Dockerfile showing how to build
  a lean geospatial R image from rocker/r-ver without RStudio
- README.Rmd/README.md: new section on rocker-versioned2 modular
  scripts and suggested upstream improvements
- .gitignore: add *.html pattern
@Robinlovelace Robinlovelace merged commit 3ff1c46 into master Jun 7, 2026
@Robinlovelace Robinlovelace deleted the slim-minimal-image-v2 branch June 7, 2026 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

minimal image is too big (5.43GB) — investigation and potential improvements

1 participant