diff --git a/Dockerfile b/Dockerfile index d7c3d54..14a2309 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,7 @@ FROM golang:latest AS builder WORKDIR /build COPY app . +RUN go get main RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -tags netgo -ldflags '-w -extldflags "-static"' -o monitor