title: How to install Go in alpine linux
body: <p>I am trying to install Go inside an Alpine Docker image. For that I downloaded tar file from <a href="https://golang.org/doc/install?download=go1.10.3.linux-amd64.tar.gz" rel="noreferrer">here</a> inside my alpine docker image, untar it using following command:</p>
  
  <blockquote>
    <p>tar -C /usr/local -xzf go1.10.3.linux-amd64.tar.gz</p>
  </blockquote>
  
  <p>exported PATH to have go binary as:</p>
  
  <blockquote>
    <p>export PATH=$PATH:/usr/local/go/bin   </p>
  </blockquote>
  
  <p>However, when I say <code>go version</code>  then it says that <code>sh: go: not found</code>. I am quite new to alpine. Does anyone know, what I am missing here?</p>
  
  <p>Steps to reproduce-</p>
  
  <pre><code>$ docker run -it alpine sh
  $ wget https://dl.google.com/go/go1.10.3.linux-amd64.tar.gz
  $ tar -C /usr/local -xzf go1.10.3.linux-amd64.tar.gz
  $ export PATH=$PATH:/usr/local/go/bin
  $ go version
  </code></pre>