Skip to content

Commit

Permalink
gcr.io/distroless/static instead of scratch
Browse files Browse the repository at this point in the history
Signed-off-by: Mathieu Benoit <[email protected]>
  • Loading branch information
mathieu-benoit authored Nov 6, 2024
1 parent 9aa906a commit aceb986
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 aceb986

Please sign in to comment.