Skip to content

Commit 8da160d

Browse files
committed
feat: add bat and glow to Docker image
1 parent 25345ea commit 8da160d

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

Dockerfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ FROM debian:bookworm-slim
22

33
# System dependencies
44
RUN apt-get update && apt-get install -y --no-install-recommends \
5-
bash ca-certificates curl dnsutils fd-find git iptables sudo \
5+
bash bat ca-certificates curl dnsutils fd-find git iptables sudo \
66
jq less locales python3 ripgrep tree unzip wget xxd \
7+
&& ln -s /usr/bin/batcat /usr/local/bin/bat \
78
&& rm -rf /var/lib/apt/lists/*
89

910
# Generate UTF-8 locale (bookworm-slim strips locale data; needed for TUI rendering)
@@ -31,6 +32,12 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
3132
# just (not in Debian repos — install from official prebuilt binary)
3233
RUN curl -fsSL https://just.systems/install.sh | bash -s -- --to /usr/local/bin
3334

35+
# glow (Markdown renderer — not in Debian repos)
36+
RUN ARCH=$(dpkg --print-architecture) \
37+
&& curl -fsSL "https://github.com/charmbracelet/glow/releases/download/v2.1.0/glow_2.1.0_linux_${ARCH}.tar.gz" \
38+
| tar -xz -C /usr/local/bin/ glow \
39+
&& chmod +x /usr/local/bin/glow
40+
3441
# gh CLI
3542
RUN curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg \
3643
| dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg \

0 commit comments

Comments
 (0)