Skip to content

Commit

Permalink
Merge pull request #81 from score-spec/mathieu-benoit-patch-2
Browse files Browse the repository at this point in the history
`gcr.io/distroless/static` instead of `scratch`
  • Loading branch information
mathieu-benoit authored Nov 6, 2024
2 parents 9aa906a + aceb986 commit 688fe71
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
Expand Up @@ -14,8 +14,8 @@ RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -o /usr/local/bin/score-k8s ./cmd/score-k8s

# We can use scratch since we don't rely on any linux libs or state.
FROM scratch
# 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.
FROM gcr.io/distroless/static

# Set the current working directory inside the container.
WORKDIR /score-k8s
Expand Down

0 comments on commit 688fe71

Please sign in to comment.