You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(dockerfile): add build argument to toggle R support in computing unit images (#3929)
## Summary
- Add `WITH_R_SUPPORT` build argument to both
`computing-unit-master.dockerfile` and
`computing-unit-worker.dockerfile`
- Conditionally install R dependencies based on the build flag
- Defaults to `false` to reduce image size and build time when R support
is not needed
## Related Issue
Closes#3928
## Changes
- Added `ARG WITH_R_SUPPORT=false` (default: false for backward
compatibility)
- Conditionally install R-related system packages (gfortran,
libreadline, libxml2, etc.)
- Conditionally compile and install R 4.3.3
- Conditionally install R packages (coro, dplyr, arrow)
## Impact
**Without R support (default):**
- Significantly smaller image size (~500MB+ reduction)
- Faster build time (avoids 10+ minute R compilation)
- Suitable for deployments that don't use R operators
**With R support:**
```bash
docker build --build-arg WITH_R_SUPPORT=true -f bin/computing-unit-master.dockerfile .
```
0 commit comments