Installing docker for edge-impulse-nordic fails

I am now running Ubuntu 22.04.

The following command fails for me:

sudo docker build -t edge-impulse-nordic .

The error is:

Dockerfile:38
--------------------
  36 |     RUN mkdir /ncs
  37 |     RUN cd /ncs && west init -m github.com/.../sdk-nrf --mr v2.4.0
  38 | >>> RUN cd /ncs && west update
  39 |     RUN cd /ncs && west zephyr-export
  40 |     RUN pip3 install -r /ncs/zephyr/scripts/requirements.txt
--------------------
ERROR: failed to solve: process "/bin/sh -c cd /ncs && west update" did not complete successfully: exit code: 128

I tried this many times.

Related