mirror of
https://github.com/dokku/dokku.git
synced 2025-12-29 00:25:08 +01:00
feat: upgrade golang to 1.21
This commit is contained in:
@@ -8,8 +8,10 @@ RUN apt-get install --no-install-recommends -y build-essential file nano && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
ARG TARGETARCH
|
||||
RUN wget https://dl.google.com/go/go1.19.6.linux-${TARGETARCH}.tar.gz && \
|
||||
tar -xvf go1.19.6.linux-${TARGETARCH}.tar.gz && \
|
||||
COPY common.mk common.mk
|
||||
RUN GOLANG_VERSION=$(grep BUILD_IMAGE common.mk | cut -d' ' -f3 | cut -d':' -f2) && \
|
||||
wget https://dl.google.com/go/go${GOLANG_VERSION}.linux-${TARGETARCH}.tar.gz && \
|
||||
tar -xvf go${GOLANG_VERSION}.linux-${TARGETARCH}.tar.gz && \
|
||||
mv go /usr/local
|
||||
|
||||
RUN GOROOT=/usr/local/go /usr/local/go/bin/go install golang.org/x/tools/gopls@latest 2>&1
|
||||
|
||||
Reference in New Issue
Block a user