sermoni

"Service monitor" / cronjob status service
Log | Files | Refs

commit d4202132e03b235dd3859d69e0d9fe0205345ae1
parent dba3c057af7b28ba6d2177f371e7a99805f5508c
Author: Vetle Haflan <vetle@haflan.dev>
Date:   Mon, 20 Apr 2020 01:39:06 +0200

Disable CGO for a hopefully working Docker build

Diffstat:
MDockerfile | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/Dockerfile b/Dockerfile @@ -11,8 +11,11 @@ RUN npm install; \ mv $GOPATH/src/sermoni/ui/dist/html.go $GOPATH/src/sermoni/internal/http/ # Build the sermoni binary WORKDIR $GOPATH/src/sermoni/ +ENV CGO_ENABLED=0 +ENV GOOS=linux +ENV GOARCH=amd64 RUN go get -d ./... ; \ - GOOS=linux GOOARCH=amd64 go build \ + go build \ -ldflags="-w -s" \ -o /go/bin/sermoni \ -tags PRODUCUTION \