diff --git a/bigquery/Dockerfile b/bigquery/Dockerfile index c99495f5..e9776aac 100644 --- a/bigquery/Dockerfile +++ b/bigquery/Dockerfile @@ -15,6 +15,7 @@ FROM golang AS build-env COPY . /go-src/ WORKDIR /go-src/bigquery +ENV CGO_ENABLED=0 RUN go test /go-src/bigquery RUN go build -o /go-app . diff --git a/githubissues/Dockerfile b/githubissues/Dockerfile index b60e66b3..4998443c 100644 --- a/githubissues/Dockerfile +++ b/githubissues/Dockerfile @@ -15,6 +15,7 @@ FROM golang AS build-env COPY . /go-src/ WORKDIR /go-src/githubissues +ENV CGO_ENABLED=0 RUN go test /go-src/githubissues RUN go build -o /go-app . diff --git a/googlechat/Dockerfile b/googlechat/Dockerfile index 4d7a99c7..f67c95be 100644 --- a/googlechat/Dockerfile +++ b/googlechat/Dockerfile @@ -15,6 +15,7 @@ FROM golang AS build-env COPY . /go-src/ WORKDIR /go-src/googlechat +ENV CGO_ENABLED=0 RUN go test /go-src/googlechat RUN go build -o /go-app . diff --git a/http/Dockerfile b/http/Dockerfile index ced671c8..089eceb3 100644 --- a/http/Dockerfile +++ b/http/Dockerfile @@ -15,6 +15,7 @@ FROM golang AS build-env COPY . /go-src/ WORKDIR /go-src/http +ENV CGO_ENABLED=0 RUN go test /go-src/http RUN go build -o /go-app . diff --git a/lib/notifiers/Dockerfile b/lib/notifiers/Dockerfile index e6502fae..e183445e 100644 --- a/lib/notifiers/Dockerfile +++ b/lib/notifiers/Dockerfile @@ -15,5 +15,6 @@ FROM golang AS build-env COPY . /go-src/ WORKDIR /go-src/lib/notifiers +ENV CGO_ENABLED=0 RUN go test /go-src/lib/notifiers RUN go build -o /dev/null . diff --git a/slack/Dockerfile b/slack/Dockerfile index 71efb588..ccf761d7 100644 --- a/slack/Dockerfile +++ b/slack/Dockerfile @@ -15,6 +15,7 @@ FROM golang AS build-env COPY . /go-src/ WORKDIR /go-src/slack +ENV CGO_ENABLED=0 RUN go test /go-src/slack RUN go build -o /go-app . diff --git a/smtp/Dockerfile b/smtp/Dockerfile index 249827bb..165d0f5c 100644 --- a/smtp/Dockerfile +++ b/smtp/Dockerfile @@ -15,6 +15,7 @@ FROM golang AS build-env COPY . /go-src/ WORKDIR /go-src/smtp +ENV CGO_ENABLED=0 RUN go test /go-src/smtp RUN go build -o /go-app .