attstore / scripts /bootstrap-shell.sh
dn-scribe's picture
fix: reduce vulnerabilities (major changne in image!)
158c80a
Raw History Blame Contribute Delete
633 Bytes
#!/usr/bin/env bash
#
# On-demand installer for basic CLI tooling inside the lean container.
set -euo pipefail
if [[ "$(id -u)" -ne 0 ]]; then
echo "bootstrap-shell must run as root (use docker exec -u 0 ...)" >&2
exit 1
fi
echo "Updating package index and installing debugging helpers..."
apk add --no-cache \
bash \
bind-tools \
curl \
iproute2 \
iputils \
jq \
less \
net-tools \
procps-ng \
vim \
wget
cat <<'EOM'
Done. Common debugging tools are now available in this container.
- bash, vim, less
- curl, wget, jq
- iproute2, iputils, net-tools, bind-tools, procps-ng
EOM