Segfault on deployment of a gatsby pages site

I cloned the gatsby pages example into a repo and followed the instructions to deploy it.

The CI/CD pipeline segfaults in the deployment - any ideas?

image: "node:lts-alpine"

stages:
  - build
  - test
  - deploy

# These folders are cached between builds
# http://docs.gitlab.com/ce/ci/yaml/README.html#cache
cache:
  key: ${CI_COMMIT_REF_SLUG}
  paths:
    # Default cache directory from https://classic.yarnpkg.com/en/docs/install-ci/#gitlab.
    - node_modules/
    # Enables git-lab CI caching. Both .cache and public must be cached, otherwise builds will fail.
    - .cache/
    - public/

yarn:install:
  stage: build
  script:
    # Install via yarn with frozen-lockfile to allow reproducible dependencies and check-files option to check if the node_modules cache is valid.
    - yarn install --frozen-lockfile --check-files --non-interactive
  rules:
    - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
    - if: $CI_MERGE_REQUEST_ID

test:unit:
  stage: test
  needs: ["yarn:install"]
  script:
    - yarn test:unit
  rules:
    - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
    - if: $CI_MERGE_REQUEST_ID

test:gatsby:
  stage: test
  needs: ["yarn:install"]
  script:
    - ./node_modules/.bin/gatsby info
  rules:
    - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
    - if: $CI_MERGE_REQUEST_ID

pages:
  stage: deploy
  needs: 
    - yarn:install
    - test:unit
    - test:gatsby
  script:
    - ./node_modules/.bin/gatsby build --prefix-paths
  artifacts:
    paths:
      - public
  rules:
    - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH

[0KRunning with gitlab-runner 14.6.0~beta.30.g4c96395a (4c96395a)e[0;m
e[0K  on blue-2.shared.runners-manager.gitlab.com/default XxUrkriXe[0;m
section_start:1642079786:prepare_executor
e[0Ke[0Ke[36;1mPreparing the "docker+machine" executore[0;me[0;m
e[0KUsing Docker executor with image node:lts-alpine ...e[0;m
e[0KPulling docker image node:lts-alpine ...e[0;m
e[0KUsing docker image sha256:23990429c0d7826c690acebe5f85d6df4fbf929b9832796cbf897e718e4a7180 for node:lts-alpine with digest node@sha256:2f50f4a428f8b5280817c9d4d896dbee03f072e93f4e0c70b90cc84bd1fcfe0d ...e[0;m
section_end:1642079795:prepare_executor
e[0Ksection_start:1642079795:prepare_script
e[0Ke[0Ke[36;1mPreparing environmente[0;me[0;m
Running on runner-xxurkrix-project-32781489-concurrent-0 via runner-xxurkrix-shared-1642079727-1edd1f05...
section_end:1642079797:prepare_script
e[0Ksection_start:1642079797:get_sources
e[0Ke[0Ke[36;1mGetting source from Git repositorye[0;me[0;m
e[32;1m$ eval "$CI_PRE_CLONE_SCRIPT"e[0;m
e[32;1mFetching changes...e[0;m
Initialized empty Git repository in /builds/p5201/website/.git/
e[32;1mCreated fresh repository.e[0;m
e[32;1mChecking out 0dc418ab as master...e[0;m

e[32;1mSkipping Git submodules setupe[0;m
section_end:1642079798:get_sources
e[0Ksection_start:1642079798:restore_cache
e[0Ke[0Ke[36;1mRestoring cachee[0;me[0;m
e[32;1mChecking cache for master-1...e[0;m
Downloading cache.zip from https://storage.googleapis.com/gitlab-com-runners-cache/project/32781489/master-1e[0;m 
e[32;1mSuccessfully extracted cachee[0;m
section_end:1642079811:restore_cache
e[0Ksection_start:1642079811:step_script
e[0Ke[0Ke[36;1mExecuting "step_script" stage of the job scripte[0;me[0;m
e[0KUsing docker image sha256:23990429c0d7826c690acebe5f85d6df4fbf929b9832796cbf897e718e4a7180 for node:lts-alpine with digest node@sha256:2f50f4a428f8b5280817c9d4d896dbee03f072e93f4e0c70b90cc84bd1fcfe0d ...e[0;m
e[32;1m$ ./node_modules/.bin/gatsby build --prefix-pathse[0;m
success open and validate gatsby-configs - 0.049s
/bin/sh: lscpu: not found
/bin/sh: lscpu: not found
success load plugins - 0.794s
success onPreInit - 0.004s
success delete html and css files from previous builds - 0.021s
success initialize cache - 0.019s
success copy gatsby files - 0.087s
success onPreBootstrap - 0.040s
success createSchemaCustomization - 0.007s
success source and transform nodes - 0.153s
success building schema - 0.509s
success createPages - 0.000s
success createPagesStatefully - 0.130s
success onPreExtractQueries - 0.000s
success update schema - 0.076s
success extract queries from components - 0.607s
success write out requires - 0.004s
success write out redirect data - 0.001s
Segmentation fault (core dumped)
section_end:1642079817:step_script
e[0Ksection_start:1642079817:cleanup_file_variables
e[0Ke[0Ke[36;1mCleaning up project directory and file based variablese[0;me[0;m
section_end:1642079818:cleanup_file_variables
e[0Ke[31;1mERROR: Job failed: exit code 139
e[0;m