From 99bbbb836228d7ede6f281441e6f3b05fc399d2f Mon Sep 17 00:00:00 2001 From: sinadarbouy Date: Sat, 8 Jun 2024 16:51:10 +0200 Subject: [PATCH 1/2] downgrade alpine version --- 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 460b34a641e8eef779742fe9fe320dd5795c5285 Mon Sep 17 00:00:00 2001 From: sinadarbouy Date: Sat, 8 Jun 2024 16:51:58 +0200 Subject: [PATCH 2/2] removed git and make package --- 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}