Skip to content

Instantly share code, notes, and snippets.

@webflo-dev
Last active June 24, 2021 07:29
Show Gist options
  • Select an option

  • Save webflo-dev/5d1a0b0d1fd43d6230eede2e9ddb98a1 to your computer and use it in GitHub Desktop.

Select an option

Save webflo-dev/5d1a0b0d1fd43d6230eede2e9ddb98a1 to your computer and use it in GitHub Desktop.
GO installation in Dockerfile
# base packages
RUN sudo apt update && \
sudo apt install -y wget build-essential
# install latest Go
RUN wget -q -c "https://dl.google.com/go/$(curl https://golang.org/VERSION?m=text).linux-amd64.tar.gz" -O - | sudo tar xvz -C /usr/local
ENV PATH="/usr/local/go/bin:${PATH}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment