Skip to content

Commit 9fdf654

Browse files
Update Dockerfile - pinned digest for base container images
Signed-off-by: Mathieu Benoit <[email protected]>
1 parent 68c5d3c commit 9fdf654

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Use the official Golang image to create a build artifact.
22
# This is based on Debian and sets the GOPATH to /go.
33
# https://hub.docker.com/_/golang
4-
FROM golang:1.23.4 AS builder
4+
FROM golang:1.23.4@sha256:7ea4c9dcb2b97ff8ee80a67db3d44f98c8ffa0d191399197007d8459c1453041 AS builder
55

66
# Set the current working directory inside the container.
77
WORKDIR /go/src/github.com/score-spec/score-compose
@@ -15,7 +15,7 @@ COPY . .
1515
RUN CGO_ENABLED=0 GOOS=linux go build -o /usr/local/bin/score-compose ./cmd/score-compose
1616

1717
# We can use gcr.io/distroless/static since we don't rely on any linux libs or state, but we need ca-certificates to connect to https/oci with the init command.
18-
FROM gcr.io/distroless/static
18+
FROM gcr.io/distroless/static:530158861eebdbbf149f7e7e67bfe45eb433a35c@sha256:5c7e2b465ac6a2a4e5f4f7f722ce43b147dabe87cb21ac6c4007ae5178a1fa58
1919

2020
# Set the current working directory inside the container.
2121
WORKDIR /score-compose

0 commit comments

Comments
 (0)