Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build binaries without dependency on cgo #179

Merged
merged 1 commit into from
Jul 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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