From 0694be08418f9b179e0b21b3c32d8b47e64193d3 Mon Sep 17 00:00:00 2001 From: Mostafa Moradian Date: Sat, 8 Jun 2024 16:47:55 +0200 Subject: [PATCH 1/2] Testing vulnerability check with Docker Scout --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 0cefd282..6ec0050e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ # syntax=docker/dockerfile:1 # Use the official golang image to build the binary. -FROM golang:1.22-alpine3.20 as builder +FROM golang:1.22-alpine3.19 as builder ARG TARGETOS ARG TARGETARCH From b31f6e5037e19e4986a41efd51b0d7159010d7d8 Mon Sep 17 00:00:00 2001 From: Mostafa Moradian Date: Sat, 8 Jun 2024 16:49:24 +0200 Subject: [PATCH 2/2] Remove versions for testing --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 6ec0050e..fe19e14b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,7 +10,7 @@ ARG TARGETPLATFORM WORKDIR /gatewayd COPY . /gatewayd -RUN apk --no-cache add git=2.45.2-r0 make=4.4.1-r2 && \ +RUN apk --no-cache add git make && \ mkdir -p dist && \ make build-platform GOOS=${TARGETOS} GOARCH=${TARGETARCH} OUTPUT_DIR=dist/${TARGETOS}-${TARGETARCH}