title: (App Engine Flex) Deploy is failing with Docker image - Error Response: [13] An internal error occurred
body: <p>I'm attempting to deploy a node app to app engine flex. It works if I just give it the built out code but I'm attempting to do it from a docker image. The docker image just uses the minified build file.</p>
  <pre><code>FROM node:16
  
  WORKDIR /usr/src/app
  
  COPY [&quot;package.json&quot;, &quot;yarn.lock&quot;, &quot;index.js&quot;, &quot;./&quot;]
  RUN yarn install
  EXPOSE 8080
  ENTRYPOINT [&quot;node&quot;, &quot;index.js&quot;]
  </code></pre>
  <p>The docker file builds/runs fine locally, but when running the following command to deploy</p>
  <p><code>gcloud app deploy --image-url=&lt;my-image-location&gt;</code></p>
  <p>I get the following:</p>
  <pre><code>File &quot;/Users/bconrad/google-cloud-sdk/lib/googlecloudsdk/command_lib/app/deploy_util.py&quot;, line 455, in Deploy
      extra_config_settings)
    File &quot;/Users/bconrad/google-cloud-sdk/lib/googlecloudsdk/api_lib/app/appengine_api_client.py&quot;, line 208, in DeployService
      poller=done_poller)
    File &quot;/Users/bconrad/google-cloud-sdk/lib/googlecloudsdk/api_lib/app/operations_util.py&quot;, line 314, in WaitForOperation
      sleep_ms=retry_interval)
    File &quot;/Users/bconrad/google-cloud-sdk/lib/googlecloudsdk/api_lib/util/waiter.py&quot;, line 264, in WaitFor
      sleep_ms, _StatusUpdate)
    File &quot;/Users/bconrad/google-cloud-sdk/lib/googlecloudsdk/api_lib/util/waiter.py&quot;, line 326, in PollUntilDone
      sleep_ms=sleep_ms)
    File &quot;/Users/bconrad/google-cloud-sdk/lib/googlecloudsdk/core/util/retry.py&quot;, line 243, in RetryOnResult
      if not should_retry(result, state):
    File &quot;/Users/bconrad/google-cloud-sdk/lib/googlecloudsdk/api_lib/util/waiter.py&quot;, line 320, in _IsNotDone
      return not poller.IsDone(operation)
    File &quot;/Users/bconrad/google-cloud-sdk/lib/googlecloudsdk/api_lib/app/operations_util.py&quot;, line 183, in IsDone
      encoding.MessageToPyValue(operation.error)))
  googlecloudsdk.api_lib.app.operations_util.OperationError: Error Response: [13] An internal error occurred. 
  
  </code></pre>
  <p>None of that is useful and I get nothing further from any stack-driver logs. Most of the similar issues were from years ago and solutions didn't seem to help. Wondering if anyone has ran into this recently.</p>