Skip to content

Commit 5cc7c43

Browse files
authored
chore(dogfood): delete lazygit and doctl archives after installing (#16184)
1 parent 04a48b8 commit 5cc7c43

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

dogfood/contents/Dockerfile

+5-3
Original file line numberDiff line numberDiff line change
@@ -220,13 +220,15 @@ RUN GH_CLI_VERSION=$(curl -s "https://api.github.com/repos/cli/cli/releases/late
220220
# See https://github.com/jesseduffield/lazygit#ubuntu
221221
RUN LAZYGIT_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygit/releases/latest" | grep '"tag_name":' | sed -E 's/.*"v*([^"]+)".*/\1/') && \
222222
curl -Lo lazygit.tar.gz "https://github.com/jesseduffield/lazygit/releases/latest/download/lazygit_${LAZYGIT_VERSION}_Linux_x86_64.tar.gz" && \
223-
tar xf lazygit.tar.gz -C /usr/local/bin lazygit
223+
tar xf lazygit.tar.gz -C /usr/local/bin lazygit && \
224+
rm lazygit.tar.gz
224225

225226
# Install doctl
226227
# See https://docs.digitalocean.com/reference/doctl/how-to/install
227228
RUN DOCTL_VERSION=$(curl -s "https://api.github.com/repos/digitalocean/doctl/releases/latest" | grep '"tag_name":' | sed -E 's/.*"v([^"]+)".*/\1/') && \
228-
curl -L https://github.com/digitalocean/doctl/releases/download/v${DOCTL_VERSION}/doctl-${DOCTL_VERSION}-linux-amd64.tar.gz -o doctl.tar.gz && \
229-
tar xf doctl.tar.gz -C /usr/local/bin doctl
229+
curl -L https://github.com/digitalocean/doctl/releases/download/v${DOCTL_VERSION}/doctl-${DOCTL_VERSION}-linux-amd64.tar.gz -o doctl.tar.gz && \
230+
tar xf doctl.tar.gz -C /usr/local/bin doctl && \
231+
rm doctl.tar.gz
230232

231233
# Install frontend utilities
232234
ENV NVM_DIR=/usr/local/nvm

0 commit comments

Comments
 (0)