diff --git a/Dockerfile b/Dockerfile index 5cbdd98..39a4fd5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,7 @@ FROM golang:1.20 as builder WORKDIR /app/ +COPY go.mod go.sum /app/ +RUN go mod download COPY . . RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -v