title: Keep running into the same deployment error (Exec Format Error) when pushing Node.js Docker from local (Apple M1) to Heroku
body: <p>Error I get when releasing image</p>
  <pre><code>2021-04-07T06:30:58.443089+00:00 heroku[web.1]: Starting process with command `node index.js`
  2021-04-07T06:31:01.899268+00:00 app[web.1]: Error: Exec format error
  </code></pre>
  <p>I went back to the most simple node.js code that only requires Express.
  Can not get my head around it what could be wrong.</p>
  <p>Setup is as following:</p>
  <ul>
  <li>running Docker Desktop on Mac (Apple M1)</li>
  <li>installed latest Heroku, latest NPM, latest Node</li>
  <li>working with VS Code</li>
  <li>dockerfile setup:</li>
  </ul>
  <pre><code>WORKDIR /app
  COPY package.json .
  RUN npm install
  COPY index.js .
  CMD [&quot;node&quot;, &quot;index.js&quot;]
  </code></pre>
  <ul>
  <li>package.json</li>
  </ul>
  <pre><code>{
    &quot;name&quot;: &quot;SigningV2&quot;,
    &quot;version&quot;: &quot;1.0.0&quot;,
    &quot;description&quot;: &quot;&quot;,
    &quot;main&quot;: &quot;index.js&quot;,
    &quot;scripts&quot;: {
      &quot;start&quot;: &quot;node index.js&quot;,
      &quot;test&quot;: &quot;echo \&quot;Error: no test specified\&quot; &amp;&amp; exit 1&quot;
    },
    &quot;keywords&quot;: [],
    &quot;author&quot;: &quot;&quot;,
    &quot;license&quot;: &quot;ISC&quot;,
    &quot;dependencies&quot;: {
      &quot;express&quot;: &quot;^4.17.1&quot;
    }
  }
  </code></pre>
  <ul>
  <li>Procfile</li>
  </ul>
  <pre><code>web: npm start
  </code></pre>
  <ul>
  <li>added two variables online</li>
  </ul>
  <pre><code>- PORT: 3000
  - USE_NPM_INSTALL: TRUE  (also tried without, same result)
  </code></pre>
  <p>ps: when running heroku local web, it works</p>