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
2 changes: 1 addition & 1 deletion ci/cloudbuild/dockerfiles/checkers.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ RUN dnf makecache && \
python-pip \
ShellCheck

RUN cargo install typos-cli --version 1.24.1 --root /usr/local
RUN cargo install --locked typos-cli --version 1.24.1 --root /usr/local

Choose a reason for hiding this comment

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

medium

To reduce the Docker image size, it's a good practice to clean up the cargo cache after the installation is complete. You can chain rm -rf /root/.cargo to the RUN command to remove the cache in the same layer.

RUN cargo install --locked typos-cli --version 1.24.1 --root /usr/local && rm -rf /root/.cargo


RUN curl -L -o /usr/bin/buildifier https://github.com/bazelbuild/buildtools/releases/download/v6.4.0/buildifier-linux-amd64 && \
chmod 755 /usr/bin/buildifier
Expand Down