From 8b3ce39b8f3cbfec1f1e1ce445893118f514d0ee Mon Sep 17 00:00:00 2001 From: Nikita Skrynnik <93182827+NikitaSkrynnik@users.noreply.github.com> Date: Thu, 18 Jan 2024 19:54:16 +1100 Subject: [PATCH] Update Spire and Delve in Dockerfile (#126) Signed-off-by: Nikita Skrynnik --- Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1a3d3ad..7da2f95 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,11 @@ -FROM golang:1.20.5-buster as go +FROM golang:1.20.12 as go ENV GO111MODULE=on ENV CGO_ENABLED=0 ENV GOBIN=/bin -RUN go install github.com/go-delve/delve/cmd/dlv@v1.8.2 -ADD https://github.com/spiffe/spire/releases/download/v1.2.2/spire-1.2.2-linux-x86_64-glibc.tar.gz . -RUN tar xzvf spire-1.2.2-linux-x86_64-glibc.tar.gz -C /bin --strip=2 spire-1.2.2/bin/spire-server spire-1.2.2/bin/spire-agent +ARG BUILDARCH=amd64 +RUN go install github.com/go-delve/delve/cmd/dlv@v1.22.0 +ADD https://github.com/spiffe/spire/releases/download/v1.8.7/spire-1.8.7-linux-${BUILDARCH}-musl.tar.gz . +RUN tar xzvf spire-1.8.7-linux-${BUILDARCH}-musl.tar.gz -C /bin --strip=2 spire-1.8.7/bin/spire-server spire-1.8.7/bin/spire-agent FROM go as build WORKDIR /build