superlint/scripts/install-lintr.sh
Marco Ferrari 1ca3ebccd6
build: reduce container image size (#5072)
- Remove build-time dependencies
- Remove cached NPM packages
- Remove cached PyPi packages
- Remove dependency descriptors. These still count against the total space,
  although it's a few KBs
- Install rust-clippy and rust-fmt using the OS package manager instead of
  maintaining our own installation script
- Add tests for build time dependencies that are not supposed to be installed
2023-12-29 19:30:58 +01:00

16 lines
274 B
Bash
Executable file

#!/usr/bin/env bash
set -euo pipefail
apk add --no-cache --virtual .r-build-deps \
g++ \
gcc \
libxml2-dev \
linux-headers \
make \
R-dev \
R-doc
Rscript --no-save /install-r-package-or-fail.R lintr purrr remotes
apk del --no-network --purge .r-build-deps