title: App Engine DEADLINE_EXCEEDED (NestJS server)
body: <p>When running gcloud app deploy, everything seems to be fine, except for the fact the running server (trigger by npm run start) prevents the deployment to finish.</p>
  <p>That should explain why I have the following error:</p>
  <p><a href="https://i.stack.imgur.com/RFYKU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RFYKU.png" alt="enter image description here" /></a></p>
  <p>I'm not sure what I'm doing wrong here, the server is successfully up and running but I don't understand what I should do to make the deployment successful.</p>
  <p>app.yaml:</p>
  <pre><code>runtime: custom
  env: flex
  </code></pre>
  <p>Dockerfile</p>
  <pre><code>FROM node:14
  
  RUN apt-get update &amp;&amp; apt-get install -y postgresql-client
  
  WORKDIR /usr/src/app
  
  COPY package.json /usr/src/app
  
  RUN npm install
  
  COPY . /usr/src/app
  COPY prisma ./prisma/
  
  EXPOSE 3000
  
  RUN npm run prisma:generate
  RUN npm run build
  RUN npm run start:prod
  </code></pre>
  <p>Package.json</p>
  <pre><code>{
    &quot;name&quot;: &quot;mango3-api&quot;,
    &quot;version&quot;: &quot;0.0.1&quot;,
    &quot;description&quot;: &quot;&quot;,
    &quot;author&quot;: &quot;&quot;,
    &quot;private&quot;: true,
    &quot;license&quot;: &quot;UNLICENSED&quot;,
    &quot;main&quot;: &quot;./dist/src/main.js&quot;,
    &quot;scripts&quot;: {
      &quot;build&quot;: &quot;nest build&quot;,
      &quot;start&quot;: &quot;node dist/main&quot;,
    },
    &quot;prisma&quot;: {
      &quot;seed&quot;: &quot;ts-node prisma/seed.ts&quot;
    }
  }
  </code></pre>
  <p>Thanks for your help guys</p>