Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore(dogfood/coder): install rust deps from apt when possible
  • Loading branch information
johnstcn committed Mar 24, 2025
commit ab457723d74c1861aada3ea32e205f7c683c7fa5
5 changes: 4 additions & 1 deletion dogfood/coder/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM rust:slim@sha256:9abf10cc84dfad6ace1b0aae3951dc5200f467c593394288c11db1e17b
# Install rust helper programs
# ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
ENV CARGO_INSTALL_ROOT=/tmp/
RUN cargo install exa bat ripgrep typos-cli watchexec-cli && \
RUN cargo install typos-cli watchexec-cli && \
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

review: bat was failing to build for me locally, but bat, exa, and ripgrep can now be installed via apt.

# Reduce image size.
rm -rf /usr/local/cargo/registry

Expand Down Expand Up @@ -128,6 +128,7 @@ RUN apt-get update --quiet && apt-get install --yes \
asciinema \
bash \
bash-completion \
bat \
bats \
bind9-dnsutils \
build-essential \
Expand All @@ -140,6 +141,7 @@ RUN apt-get update --quiet && apt-get install --yes \
docker-ce \
docker-ce-cli \
docker-compose-plugin \
exa \
fd-find \
file \
fish \
Expand Down Expand Up @@ -176,6 +178,7 @@ RUN apt-get update --quiet && apt-get install --yes \
postgresql-16 \
python3 \
python3-pip \
ripgrep \
rsync \
screen \
shellcheck \
Expand Down