Files
pinniped/dockerfiles/gh-cli/Dockerfile
Joshua Casey c9b67d7b15 Merge pull request #2600 from vmware/dependabot/docker/dockerfiles/gh-cli/ci/golang-1.25.1
Bump golang from 1.25.0 to 1.25.1 in /dockerfiles/gh-cli
2025-09-09 09:18:12 -05:00

16 lines
508 B
Docker

# Copyright 2020-2025 the Pinniped contributors. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
# For running the GitHub CLI.
FROM debian:13.1-slim AS builder
RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
RUN curl \
-sfLo /tmp/gh.tar.gz \
https://github.com/cli/cli/releases/download/v2.40.0/gh_2.40.0_linux_amd64.tar.gz \
&& tar -C /tmp --strip-components=1 -xzvf /tmp/gh.tar.gz
FROM golang:1.25.1
COPY --from=builder /tmp/bin/gh /usr/local/bin/gh