    def requirements_file(self, file_path: str) -> t.Self:
        """Add a requirements file to the image. Supports chaining call.

        Example:

        .. code-block:: python

            image = Image("debian:latest").requirements_file("requirements.txt")
        """
        self.python_requirements += Path(file_path).read_text()
        self._after_pip_install = True
        return self
Add a requirements file to the image. Supports chaining call.

Example:

.. code-block:: python

image = Image("debian:latest").requirements_file("requirements.txt")
src/_bentoml_sdk/images.py