diff --git a/.github/workflows/build-images.yml b/.github/workflows/build-images.yml index 098ba4f..3a062bd 100644 --- a/.github/workflows/build-images.yml +++ b/.github/workflows/build-images.yml @@ -9,6 +9,7 @@ on: - '**.go' - 'go.*' - '**.yml' + - 'Dockerfile' push: paths: - 'cmd/**' @@ -16,6 +17,7 @@ on: - '**.go' - 'go.*' - '**.yml' + - 'Dockerfile' workflow_dispatch: jobs: diff --git a/Dockerfile b/Dockerfile index 2581c31..d2e6fd5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,7 +21,7 @@ COPY staging staging/ # and so that source changes don't invalidate our downloaded layer RUN go mod download -RUN apk add gcc +RUN apk add gcc libc-dev # Build RUN go build -ldflags="${LDFLAGS}" -a -o ${PKGNAME} /go/src/github.com/gocrane/fadvisor/cmd/${PKGNAME}/main.go