diff --git a/.github/workflows/codeql.yaml b/.github/workflows/codeql.yaml index a68e90385..e09676d74 100644 --- a/.github/workflows/codeql.yaml +++ b/.github/workflows/codeql.yaml @@ -12,6 +12,7 @@ on: - '.github/**' - '.vscode/**' - 'deploy/**' + - 'cmd/kobs/Dockerfile' - 'docs/**' - '.dockerignore' - '.editorconfig' @@ -29,6 +30,7 @@ on: paths-ignore: - '.github/**' - '.vscode/**' + - 'cmd/kobs/Dockerfile' - 'deploy/**' - 'docs/**' - '.dockerignore' diff --git a/.github/workflows/continuous-integration.yaml b/.github/workflows/continuous-integration.yaml index d6853c216..68bd5e254 100644 --- a/.github/workflows/continuous-integration.yaml +++ b/.github/workflows/continuous-integration.yaml @@ -6,6 +6,7 @@ on: - '.github/ISSUE_TEMPLATE/**' - '.github/PULL_REQUEST_TEMPLATE.md' - '.vscode/**' + - 'cmd/kobs/Dockerfile' - 'deploy/**' - 'docs/**' - '.dockerignore' diff --git a/CHANGELOG.md b/CHANGELOG.md index a2c15d6ac..f38702be1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -40,6 +40,7 @@ NOTE: As semantic versioning states all 0.y.z releases can contain breaking chan - [#243](https://github.com/kobsio/kobs/pull/243): [resources] Fix reload of resources, when the user clicks on the search button. - [#245](https://github.com/kobsio/kobs/pull/245): [klogs] Fix that the returned documents could be out of the selected time range. - [#247](https://github.com/kobsio/kobs/pull/247): [azure] Fix documentation about the permission handling. +- [#274](https://github.com/kobsio/kobs/pull/274): Fix Docker build by setting `CGO_ENABLED=0`. ### Changed diff --git a/cmd/kobs/Dockerfile b/cmd/kobs/Dockerfile index 52af41e5a..c80a36bc9 100644 --- a/cmd/kobs/Dockerfile +++ b/cmd/kobs/Dockerfile @@ -15,7 +15,7 @@ WORKDIR /kobs COPY go.mod go.sum ./ RUN go mod download COPY . . -RUN make build +RUN export CGO_ENABLED=0 && make build FROM alpine:3.14.2 RUN apk update && apk add --no-cache ca-certificates