title: Hosted api on google cloud issue with file paths
body: <p>I have an image file in the root directory with the main.go file. How would I get the path to serve the file while the golang api is hosted on google cloud (seems like all the files get messed up when its hosted on google cloud). Heres the code im using now:</p>
  <pre class="lang-golang prettyprint-override"><code>func ServeImage(w http.ResponseWriter, r *http.Request) {
      params := mux.Vars(r)
  
      ex, err := os.Executable()
      if err != nil {
          panic(err)
      }
      executableDir := filepath.Dir(ex)
  
      //TODO error
      file, err := os.Open(path.Join(executableDir, &quot;/&quot;+params[&quot;name&quot;]))
      if (err != nil) {
          http.Error(w, err.Error(), http.StatusBadRequest)
          fmt.Println(err)
      }
      defer file.Close()
      http.ServeContent(w, r, &quot;image&quot;, time.Now(), file)
  }
  </code></pre>
  <p>The error i get from this is:</p>
  <pre><code>open /layers/google.go.build/bin/_DSC7451.jpeg: no such file or directory
  seeker can't seek
  </code></pre>