From a242cff05243a9405f8f7a857bd59835123af4e2 Mon Sep 17 00:00:00 2001 From: Kyle Harding Date: Fri, 1 Sep 2023 14:21:18 -0400 Subject: [PATCH] Update to go 1.19 to align with minio/minio Change-type: patch Signed-off-by: Kyle Harding --- Dockerfile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 827107a..fee98ef 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,10 +5,9 @@ EXPOSE 80 VOLUME /export ARG TARGETARCH - -ENV GO_SHA256_amd64 013a489ebb3e24ef3d915abe5b94c3286c070dfe0818d5bca8108f1d6e8440d2 -ENV GO_SHA256_arm64 3770f7eb22d05e25fbee8fb53c2a4e897da043eb83c69b9a14f8d98562cd8098 -ENV GO_VERSION 1.16 +ENV GO_SHA256_amd64 464b6b66591f6cf055bc5df90a9750bf5fbc9d038722bb84a9d56a2bea974be6 +ENV GO_SHA256_arm64 efa97fac9574fc6ef6c9ff3e3758fb85f1439b046573bf434cccb5e012bd00c8 +ENV GO_VERSION 1.19 ENV GOPATH /go # https://github.com/minio/minio/tags @@ -23,7 +22,7 @@ RUN curl -SLO https://storage.googleapis.com/golang/go${GO_VERSION}.linux-${TARG && echo "$(eval echo \$GO_SHA256_${TARGETARCH}) go${GO_VERSION}.linux-${TARGETARCH}.tar.gz" | sha256sum -c \ && tar xz -C /usr/local -f go${GO_VERSION}.linux-${TARGETARCH}.tar.gz \ && rm go${GO_VERSION}.linux-${TARGETARCH}.tar.gz \ - && GO111MODULE=on go get github.com/minio/minio@${MINIO_VERSION} \ + && GO111MODULE=on go install github.com/minio/minio@${MINIO_VERSION} \ && rm -rf /go/pkg RUN curl -fsSL -o /sbin/mc https://dl.min.io/client/mc/release/linux-${TARGETARCH}/mc \