build error

build failed with exit code: 1, message: None

Build logs:

--> FROM docker.io/library/python:3.8.9@sha256:49d05fff9cb3b185b15ffd92d8e6bd61c20aa916133dca2e3dbe0215270faf53
DONE 0.0s

--> RUN apt-get update && apt-get install -y git-lfs
CACHED

--> RUN git lfs install
CACHED

--> RUN apt-get update && apt-get install -y         ffmpeg         libsm6         libxext6         cmake         libgl1-mesa-glx
CACHED

--> COPY packages.txt /root/packages.txt
CACHED

--> RUN pip install         datasets         huggingface-hub
CACHED

--> WORKDIR /home/user/app
CACHED

--> WORKDIR /home/user
CACHED

--> RUN apt-get update && xargs -r -a /root/packages.txt apt-get install -y
CACHED

--> RUN mkdir app
CACHED

--> RUN useradd -m -u 1000 user
CACHED

--> RUN pip install pip==22.0.2
CACHED

--> COPY requirements.txt /home/user/app/requirements.txt
CACHED

--> RUN pip install -r requirements.txt
Defaulting to user installation because normal site-packages is not writeable
Collecting git+git://github.com/huggingface/transformers (from -r requirements.txt (line 5))
  Cloning git://github.com/huggingface/transformers to /tmp/pip-req-build-q20m_vqj
  Running command git clone --filter=blob:none --quiet git://github.com/huggingface/transformers /tmp/pip-req-build-q20m_vqj
  fatal: unable to connect to github.com:
  github.com[0: 140.82.114.3]: errno=Connection timed out

  error: subprocess-exited-with-error
  
  × git clone --filter=blob:none --quiet git://github.com/huggingface/transformers /tmp/pip-req-build-q20m_vqj did not run successfully.
  │ exit code: 128
  ╰─> See above for output.
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× git clone --filter=blob:none --quiet git://github.com/huggingface/transformers /tmp/pip-req-build-q20m_vqj did not run successfully.
│ exit code: 128
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
WARNING: You are using pip version 22.0.2; however, version 22.1.1 is available.
You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command.

--> ERROR: process "/bin/sh -c pip install -r requirements.txt" did not complete successfully: exit code: 1