diff --git a/Dockerfile b/Dockerfile index 0cefd282..fe19e14b 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 @@ -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}