Last active
June 24, 2021 07:29
-
-
Save webflo-dev/5d1a0b0d1fd43d6230eede2e9ddb98a1 to your computer and use it in GitHub Desktop.
GO installation in Dockerfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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