diff --git a/Dockerfile.alpine b/Dockerfile.alpine index 36b5f13..9cb5a60 100644 --- a/Dockerfile.alpine +++ b/Dockerfile.alpine @@ -1,5 +1,5 @@ # Build the runner binary -FROM golang:1.21 as builder +FROM golang:1.22 as builder WORKDIR /workspace # Copy the Go Modules manifests @@ -19,7 +19,7 @@ RUN CGO_ENABLED=0 GO111MODULE=on go build -a -o runner main.go # Use distroless as minimal base image to package the runner binary # Refer to https://github.com/GoogleContainerTools/distroless for more details -FROM alpine:latest +FROM alpine:3.20.1@sha256:b89d9c93e9ed3597455c90a0b88a8bbb5cb7188438f70953fede212a0c4394e0 RUN apk add socat WORKDIR / COPY --from=builder /workspace/runner .