title: OpenShift freezes at nextjs build phase with message "Creating an optimized production build ..."
body: <p>I'm trying the OpenShift Online version with two free evaluation months, my evalution stopped very early : I'm unable to get my app online since in the logs it freezes at te compile phase. Seeams to be a RAM issue, but since I don't have control over the ram, does anyone have suggestions?</p>
  
  <p>These are the logs just before it hangs up:</p>
  
  <pre><code>added 915 packages from 491 contributors and audited 8414 packages in 63.205s
  found 0 vulnerabilities
  
  npm timing npm Completed in 63927ms
  npm info ok 
  ---&gt; Building in production mode
  npm info it worked if it ends with ok
  npm info using npm@6.9.0
  npm info using node@v10.16.0
  npm info lifecycle weally@0.1.0~prebuild: weally@0.1.0
  npm info lifecycle weally@0.1.0~build: weally@0.1.0
  
  &gt; weally@0.1.0 build /opt/app-root/src
  &gt; next build
  
  Creating an optimized production build ...
  </code></pre>
  
  <p>The process is running fro three days now, it seams it's doing things because the processor graphs shows ups and downs, the memory is locked at 530Mb</p>
  
  <p><a href="https://i.stack.imgur.com/bYPle.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bYPle.png" alt="enter image description here"></a></p>
  
  <p>Here's my build config:</p>
  
  <pre><code>kind: BuildConfig
  apiVersion: build.openshift.io/v1
  metadata:
    name: weallynode
    namespace: weally
    selfLink: /apis/build.openshift.io/v1/namespaces/weally/buildconfigs/weallynode
    uid: 8c6cf6ec-aa2d-11e9-9f6f-0a580a810073
    resourceVersion: '1319487'
    creationTimestamp: '2019-07-19T14:00:21Z'
    labels:
      app: weallynode
  spec:
    nodeSelector: null
    output:
      to:
        kind: ImageStreamTag
        name: 'weallynode:latest'
    resources: {}
    successfulBuildsHistoryLimit: 5
    failedBuildsHistoryLimit: 2
    strategy:
      type: Source
      sourceStrategy:
        from:
          kind: ImageStreamTag
          namespace: openshift
          name: 'nodejs:10'
    postCommit: {}
    source:
      type: Git
      git:
        uri: 'https://1vu@bitbucket.org/1vu/weally.git'
      sourceSecret:
        name: weallygit
    triggers:
      - type: ImageChange
        imageChange:
          lastTriggeredImageID: &gt;-
            image-registry.openshift-image-registry.svc:5000/openshift/nodejs@sha256:9dce2f60b87b2eea351213c3d142716c0a70c894df8b3d2d4425b4933b8f6221
      - type: ConfigChange
    runPolicy: Serial
  status:
    lastVersion: 6
  </code></pre>