From 6d671f17233c6ac0dcf0443f82547966fe735cdd Mon Sep 17 00:00:00 2001 From: Stefan Prodan Date: Tue, 27 Sep 2022 16:14:32 +0300 Subject: [PATCH] Dockerfile: Build with Go 1.19 Signed-off-by: Stefan Prodan --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6a424a651..067ae1395 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -ARG GO_VERSION=1.18 +ARG GO_VERSION=1.19 ARG XX_VERSION=1.1.0 FROM --platform=$BUILDPLATFORM tonistiigi/xx:${XX_VERSION} AS xx @@ -29,7 +29,7 @@ COPY internal/ internal/ # build ENV CGO_ENABLED=0 -RUN xx-go build -a -o notification-controller main.go +RUN xx-go build -trimpath -a -o notification-controller main.go FROM alpine:3.16