From b2f6a71806cdbc00fcb64c118127d146ce381034 Mon Sep 17 00:00:00 2001 From: Jeeva Kandasamy Date: Sat, 30 Mar 2024 23:40:04 +0530 Subject: [PATCH] bump go version on dockerfile Signed-off-by: Jeeva Kandasamy --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2a02105..4d8fc87 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.20-alpine3.17 AS builder +FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.21-alpine3.19 AS builder RUN mkdir /app ADD . /app WORKDIR /app @@ -14,7 +14,7 @@ ARG TARGETARCH RUN source ./scripts/version.sh && \ GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH:-amd64} go build -v -o 2mqtt -ldflags "-s -w $LD_FLAGS" cmd/main.go -FROM alpine:3.17 +FROM alpine:3.19 LABEL maintainer="Jeeva Kandasamy "