From adf737b474bc8d0ef00bcc5c2b8d2065b4578984 Mon Sep 17 00:00:00 2001 From: TwiN Date: Fri, 15 Dec 2023 19:42:16 -0500 Subject: [PATCH] build: Add go mod tidy in Dockerfile --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index a560e31..75de39c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,7 @@ FROM golang:alpine AS builder WORKDIR /app ADD . ./ +RUN go mod tidy RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o k8s-ttl-controller . RUN apk --update add ca-certificates