From dd08bd4fab7e2992aba738146d9c357d7af6c8a5 Mon Sep 17 00:00:00 2001 From: frozen <355847+Frozen@users.noreply.github.com> Date: Tue, 10 Oct 2023 11:56:34 -0400 Subject: [PATCH] Go 1.21 --- Dockerfile | 2 +- README.md | 2 +- api/service/legacysync/downloader/Proto.Dockerfile | 2 +- rosetta/infra/Dockerfile | 2 +- scripts/docker/Dockerfile | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 706de4ea1..7e60d8989 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM ubuntu:18.04 ARG TARGETARCH -ARG GOLANG_VERSION="1.19" +ARG GOLANG_VERSION="1.21" SHELL ["/bin/bash", "-c"] diff --git a/README.md b/README.md index 5d2b1bd4c..2f5c3ea65 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ http://api.hmny.io/ ## Requirements -### **Go 1.19** +### **Go 1.21** ### **GMP and OpenSSL** On macOS: diff --git a/api/service/legacysync/downloader/Proto.Dockerfile b/api/service/legacysync/downloader/Proto.Dockerfile index 5591abb47..87c786e77 100644 --- a/api/service/legacysync/downloader/Proto.Dockerfile +++ b/api/service/legacysync/downloader/Proto.Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.19-bullseye +FROM golang:1.21 RUN apt update RUN apt install -y protobuf-compiler diff --git a/rosetta/infra/Dockerfile b/rosetta/infra/Dockerfile index 0b1424b22..714bc890f 100644 --- a/rosetta/infra/Dockerfile +++ b/rosetta/infra/Dockerfile @@ -1,5 +1,5 @@ # Build -FROM golang:1.19 AS build +FROM golang:1.21 AS build RUN apt update -y && \ apt install libgmp-dev libssl-dev git -y && \ diff --git a/scripts/docker/Dockerfile b/scripts/docker/Dockerfile index ae37a225b..363fbba87 100644 --- a/scripts/docker/Dockerfile +++ b/scripts/docker/Dockerfile @@ -1,7 +1,7 @@ ARG GOPATH_DEFAULT=/root/go ARG SRC_PATH=src/github.com/harmony-one -FROM golang:1.19-bullseye as builder +FROM golang:1.21 as builder ARG GOPATH_DEFAULT ARG SRC_PATH