Skip to content

Commit

Permalink
Build binaries without dependency on cgo (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
vicpadilla authored Jul 11, 2023
1 parent 603e6b4 commit feba9bc
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions bigquery/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 .

Expand Down
1 change: 1 addition & 0 deletions githubissues/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 .

Expand Down
1 change: 1 addition & 0 deletions googlechat/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 .

Expand Down
1 change: 1 addition & 0 deletions http/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 .

Expand Down
1 change: 1 addition & 0 deletions lib/notifiers/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 .
1 change: 1 addition & 0 deletions slack/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 .

Expand Down
1 change: 1 addition & 0 deletions smtp/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 .

Expand Down

0 comments on commit feba9bc

Please sign in to comment.