Files
pinniped/pipelines/shared-helpers/test-binaries-image/Dockerfile
T
dependabot[bot]andGitHub dbb97f04b5 Bump golang in /pipelines/shared-helpers/test-binaries-image
Bumps golang from 1.25.3-bookworm to 1.25.4-bookworm.

---
updated-dependencies:
- dependency-name: golang
  dependency-version: 1.25.4-bookworm
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-06 01:12:53 +00:00

23 lines
769 B
Docker

# syntax = docker/dockerfile:experimental
# Copyright 2020-2025 the Pinniped contributors. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
FROM golang:1.25.4-bookworm as build-env
WORKDIR /work
COPY . .
ARG GOPROXY
RUN \
--mount=type=cache,target=/cache/gocache \
--mount=type=cache,target=/cache/gomodcache \
mkdir out && \
export GOCACHE=/cache/gocache && \
export GOMODCACHE=/cache/gomodcache && \
export GOOS=linux && \
export GOARCH=amd64 && \
CGO_ENABLED=0 go build -v -ldflags "$(hack/get-ldflags.sh)" -o out/pinniped ./cmd/pinniped/main.go && \
CGO_ENABLED=1 go test -c -vet=off -race ./test/integration -o out/pinniped-integration-test # need cgo for race detector
FROM scratch
COPY --from=build-env /work/out/ /usr/local/bin/