From a02d3d09fa84efb11e9a79b5849f4a1f44ba5704 Mon Sep 17 00:00:00 2001 From: Paulo Sousa Date: Thu, 18 Apr 2024 14:37:27 -0300 Subject: [PATCH] fixate golang and alpine versions on Dockerfile --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index fe26561..18a08da 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,6 @@ -FROM --platform=$BUILDPLATFORM golang:latest as builder +ARG alpine_version=3.19 +ARG golang_version=1.20 +FROM --platform=$BUILDPLATFORM golang:${golang_version}-alpine${alpine_version} as builder ARG TARGETARCH ENV GOARCH=$TARGETARCH @@ -13,4 +15,4 @@ COPY --from=builder /go/src/github.com/tsuru/kubernetes-router/kubernetes-router EXPOSE 8077 -CMD ["./kubernetes-router"] \ No newline at end of file +CMD ["./kubernetes-router"]