Skip to content

Commit

Permalink
update go version to 1.18.2 in docker (#1093)
Browse files Browse the repository at this point in the history
Signed-off-by: Lloyd-Pottiger <[email protected]>
  • Loading branch information
Lloyd-Pottiger authored Mar 29, 2023
1 parent d7e4db6 commit cddfcc0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ RUN apt-get update --yes \
&& apt-get install --yes curl unzip \
&& rm -rf /var/lib/apt/lists/*

ENV GO_VERSION "1.18.2"
RUN rm -rf /usr/local/go \
&& curl -O https://dl.google.com/go/go$GO_VERSION.linux-amd64.tar.gz \
&& tar -C /usr/local -xzf go$GO_VERSION.linux-amd64.tar.gz \
&& rm go$GO_VERSION.linux-amd64.tar.gz
ENV PATH="/usr/local/go/bin:$PATH"

# Protoc setup
ENV PROTOC_VERSION "3.8.0"
RUN curl -L https://github.com/google/protobuf/releases/download/v$PROTOC_VERSION/protoc-$PROTOC_VERSION-linux-x86_64.zip -o protoc.zip && \
Expand Down

0 comments on commit cddfcc0

Please sign in to comment.