From 576055354e13b601faffc6534a61f77a2615c418 Mon Sep 17 00:00:00 2001 From: zsnmwy <35299017+zsnmwy@users.noreply.github.com> Date: Fri, 22 Sep 2023 23:12:24 +0800 Subject: [PATCH 1/2] Create test-for-ci-image-build.yml --- test-for-ci-image-build.yml | 1 + 1 file changed, 1 insertion(+) create mode 100644 test-for-ci-image-build.yml diff --git a/test-for-ci-image-build.yml b/test-for-ci-image-build.yml new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/test-for-ci-image-build.yml @@ -0,0 +1 @@ + From babf4cde8cff0d488038e1cc46d4397e74b8ff1f Mon Sep 17 00:00:00 2001 From: zsnmwy <35299017+zsnmwy@users.noreply.github.com> Date: Fri, 22 Sep 2023 23:17:56 +0800 Subject: [PATCH 2/2] Update Dockerfile --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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