title: No web processes running error - Deploying Go container on Heroku
body: <p>I have a docker container that runs perfectly when I build and run it in the local environment. But somehow when I deploy it to Heroku with container registry I get <code>error code=H14 desc=&quot;No web processes running&quot; method=POST path=&quot;/&quot; host=mighty-river-17352.herokuapp.com request_id=e00ac035-9ba7-4127-a1c2-e72b718d9635 fwd=&quot;85.153.236.42&quot; dyno= connect= service= status=503 bytes= protocol=https</code> in the logs.</p>
  <p>my file structure:</p>
  <p><a href="https://i.stack.imgur.com/yZD3O.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yZD3O.png" alt="enter image description here" /></a></p>
  <p>Dockerfile:</p>
  <p><a href="https://i.stack.imgur.com/0icA9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0icA9.png" alt="enter image description here" /></a></p>
  <p>Main.go:</p>
  <pre><code>func main() {
  
      port := os.Getenv(&quot;PORT&quot;)
  
      http.HandleFunc(&quot;/&quot;, HelloServer)
      log.Printf(&quot;Server started at port %s &quot;, port)
      log.Fatal(http.ListenAndServe(&quot;:&quot;+port, nil))
  
  }
  </code></pre>