Skip to content

Commit

Permalink
Merge pull request #22 from grafana/disable-cgo
Browse files Browse the repository at this point in the history
Disable cgo
jotdl authored Apr 25, 2024
2 parents 4e50b34 + 2f7c007 commit 031ae1b
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile.ic-assignment
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@ FROM golang:1.22 AS build

WORKDIR /src
COPY . /src
RUN go build -o /ic-assignment /src/cmd/ic-assignment
RUN CGO_ENABLED=0 go build -o /ic-assignment /src/cmd/ic-assignment

FROM scratch
COPY --from=build /ic-assignment /ic-assignment
2 changes: 1 addition & 1 deletion Dockerfile.regex-labeler
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@ FROM golang:1.22 AS build

WORKDIR /src
COPY . /src
RUN go build -o /regex-labeler /src/cmd/regex-labeler
RUN CGO_ENABLED=0 go build -o /regex-labeler /src/cmd/regex-labeler

FROM scratch
COPY --from=build /regex-labeler /regex-labeler

0 comments on commit 031ae1b

Please sign in to comment.