title: Golang app in Docker exec user process caused "no such file or directory"
body: <p>I am trying to create the docker image of an app that was developed in Go. I have the binary called myapp, and if I execute it then it work correctly, I execute it with:</p>
  
  <pre><code>./myapp
  </code></pre>
  
  <p>Then, take that bin and put it alone in a directory called <code>mydirectory</code> and inside I put this dockerfile:</p>
  
  <pre><code># iron/go is the alpine image with only ca-certificates added
  FROM iron/go
  
  WORKDIR /
  
  # Now just add the binary
  ADD myapp /
  
  ENTRYPOINT ["./myapp"]
  </code></pre>
  
  <p>and then I create the docker image by typing:</p>
  
  <pre><code>docker build -t myDockerHubUser/myapp .
  </code></pre>
  
  <p>Then, when I run the image I get this message:</p>
  
  <pre><code>standard_init_linux.go:185: exec user process caused "no such file or directory"
  </code></pre>
  
  <p>What does it mean? I found some post related with the same message but the thing is that my bnary is executed correctly without any problems</p>