From 136569374fa1fb8a2ac20400e9609a9868ff114e Mon Sep 17 00:00:00 2001 From: rlaisqls Date: Tue, 9 Jan 2024 23:23:31 +0900 Subject: [PATCH] =?UTF-8?q?setting=20::=20=EB=AA=85=EB=A0=B9=EC=96=B4=20?= =?UTF-8?q?=EC=8B=A4=ED=96=89=20=EC=88=9C=EC=84=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 9 +++++++-- go.mod | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 310128f..63a0bf7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,12 +13,17 @@ COPY .bingo .bingo COPY Makefile main.go ./ COPY pkg pkg +# Install build dependencies +RUN if grep -i -q alpine /etc/issue; then \ + apk add --no-cache gcc g++ make git; \ + fi + +RUN make gen + RUN go mod tidy \ && go get -u -d -v ./... RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -ldflags '-s -w' -o project -RUN apt update && apt install -y make -RUN make gen-go RUN make build FROM scratch diff --git a/go.mod b/go.mod index f317040..9505160 100644 --- a/go.mod +++ b/go.mod @@ -14,7 +14,7 @@ require ( github.com/grafana/dataplane/sdata v0.0.6 github.com/grafana/dskit v0.0.0-20231221015914-de83901bf4d6 github.com/grafana/grafana-aws-sdk v0.20.0 - github.com/grafana/grafana-plugin-sdk-go v0.198.0 + github.com/grafana/grafana-plugin-sdk-go v0.197.0 github.com/grafana/kindsys v0.0.0-20230926104744-988ea4c8a739 github.com/grpc-ecosystem/go-grpc-middleware v1.4.0 github.com/json-iterator/go v1.1.12