diff --git a/Dockerfile b/Dockerfile index 3024e96..98d9379 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,7 +11,7 @@ WORKDIR /work COPY go.mod . COPY . . RUN go mod download -RUN go build +RUN make FROM alpine:latest LABEL maintainer="Thomas von Dein " diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..8a96d8f --- /dev/null +++ b/Makefile @@ -0,0 +1,2 @@ +all: + CGO_LDFLAGS='-static' go build -tags osusergo,netgo -ldflags "-extldflags=-static" -o io-exporter