feat(tech): bump golang to v1.16 EE-515 (#4993)

* bump golang to v1.16

* Update build/linux/toolkit.Dockerfile

Co-authored-by: dbuduev <dbuduev@gmail.com>
528
Dmitry Salakhov 2021-07-14 13:10:42 +12:00 committed by GitHub
parent 2fd95d87eb
commit 0f5407da40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 14 deletions

View File

@ -1,6 +1,6 @@
module github.com/portainer/portainer/api
go 1.13
go 1.16
require (
github.com/Microsoft/go-winio v0.4.16

View File

@ -10,28 +10,28 @@ WORKDIR /src/portainer
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
# Set default go version
ARG GO_VERSION=go1.13.11.linux-amd64
ARG GO_VERSION=go1.16.6.linux-amd64
# Install packages
RUN apt-get update --fix-missing && apt-get install -qq \
dialog \
apt-utils \
curl \
build-essential \
nodejs \
git \
wget
dialog \
apt-utils \
curl \
build-essential \
nodejs \
git \
wget
# Install Yarn
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
&& apt-get update && apt-get -y install yarn
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
&& apt-get update && apt-get -y install yarn
# Install Golang
RUN cd /tmp \
&& wget -q https://dl.google.com/go/${GO_VERSION}.tar.gz \
&& tar -xf ${GO_VERSION}.tar.gz \
&& mv go /usr/local
&& wget -q https://dl.google.com/go/${GO_VERSION}.tar.gz \
&& tar -xf ${GO_VERSION}.tar.gz \
&& mv go /usr/local
# Configure Go
ENV PATH "$PATH:/usr/local/go/bin"