Skip to content

Commit

Permalink
Bump go-toolset version
Browse files Browse the repository at this point in the history
Signed-off-by: Aaron Collins <[email protected]>
  • Loading branch information
aaroncollins committed Sep 30, 2024
1 parent 0fe2a5a commit c5b81db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This first stage of the build uses go-toolset to build the portieris binary creates
# a simplified operating system image that satisfies vulnerability scanning requirements
FROM --platform=$BUILDPLATFORM registry.access.redhat.com/ubi8/go-toolset:1.21.11 AS builder
FROM --platform=$BUILDPLATFORM registry.access.redhat.com/ubi8/go-toolset:1.21.13 AS builder
ARG PORTIERIS_VERSION=undefined

# switch to root user as we need to run yum and rpm to ensure packages are up to date
Expand All @@ -22,7 +22,7 @@ RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build \
-tags containers_image_openpgp -o /opt/app-root/bin/portieris ./cmd/portieris
RUN go version -m -v /opt/app-root/bin/portieris | (grep dep || true) | awk '{print "{\"Path\": \""$2 "\", \"Version\": \"" $3 "\"}"}' > /deps.jsonl

FROM registry.access.redhat.com/ubi8/go-toolset:1.21.11 AS installer
FROM registry.access.redhat.com/ubi8/go-toolset:1.21.13 AS installer
ARG TARGETOS TARGETARCH
USER root
RUN yum update -y
Expand Down

0 comments on commit c5b81db

Please sign in to comment.