mirror of https://github.com/portainer/portainer
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
parent
2fd95d87eb
commit
0f5407da40
|
@ -1,6 +1,6 @@
|
||||||
module github.com/portainer/portainer/api
|
module github.com/portainer/portainer/api
|
||||||
|
|
||||||
go 1.13
|
go 1.16
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/Microsoft/go-winio v0.4.16
|
github.com/Microsoft/go-winio v0.4.16
|
||||||
|
|
|
@ -10,28 +10,28 @@ WORKDIR /src/portainer
|
||||||
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
|
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
|
||||||
|
|
||||||
# Set default go version
|
# Set default go version
|
||||||
ARG GO_VERSION=go1.13.11.linux-amd64
|
ARG GO_VERSION=go1.16.6.linux-amd64
|
||||||
|
|
||||||
# Install packages
|
# Install packages
|
||||||
RUN apt-get update --fix-missing && apt-get install -qq \
|
RUN apt-get update --fix-missing && apt-get install -qq \
|
||||||
dialog \
|
dialog \
|
||||||
apt-utils \
|
apt-utils \
|
||||||
curl \
|
curl \
|
||||||
build-essential \
|
build-essential \
|
||||||
nodejs \
|
nodejs \
|
||||||
git \
|
git \
|
||||||
wget
|
wget
|
||||||
|
|
||||||
# Install Yarn
|
# Install Yarn
|
||||||
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
|
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 \
|
&& 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
|
&& apt-get update && apt-get -y install yarn
|
||||||
|
|
||||||
# Install Golang
|
# Install Golang
|
||||||
RUN cd /tmp \
|
RUN cd /tmp \
|
||||||
&& wget -q https://dl.google.com/go/${GO_VERSION}.tar.gz \
|
&& wget -q https://dl.google.com/go/${GO_VERSION}.tar.gz \
|
||||||
&& tar -xf ${GO_VERSION}.tar.gz \
|
&& tar -xf ${GO_VERSION}.tar.gz \
|
||||||
&& mv go /usr/local
|
&& mv go /usr/local
|
||||||
|
|
||||||
# Configure Go
|
# Configure Go
|
||||||
ENV PATH "$PATH:/usr/local/go/bin"
|
ENV PATH "$PATH:/usr/local/go/bin"
|
||||||
|
|
Loading…
Reference in New Issue