Skip to content

Commit

Permalink
build: Add go mod tidy in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
TwiN committed Dec 16, 2023
1 parent 009f096 commit adf737b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit adf737b

Please sign in to comment.