<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_install_requirements_dockerfile(self, name: str, tag: str, repo_path: Path, requirements_option: RequirementsOptions) -> str: """ Returns the content of a Dockerfile that will install requirements based on the repository, prioritizing Pipfile or Pipfile.lock and falling back on requirements.txt files """

        if requirements_option == RequirementsOptions.requirements_txt:
            target_file = "requirements.txt"
            requirements_files = [repo_path / self.requirements_location]

            install_cmd = "pip"
            cmd_arguments = "install -r /srv/requirements.txt"

        elif requirements_option == RequirementsOptions.pipfile:
            target_file = ""
            requirements_files = [repo_path / self.pipfile_location / "Pipfile",
                                  repo_path / self.pipfile_location / "Pipfile.lock"]

            install_cmd = "pipenv"
            cmd_arguments = "install --system --ignore-pipfile --deploy"
        else:
            raise ValueError("Invalid requirements_option")

        dockerfile = self.INSTALL_REQUIREMENTS.format(
            name=name,
            tag=tag,
            timeout=self.requirements_timeout,
            target_file=target_file,
            requirements_files=" ".join(str(x.relative_to(repo_path.parent)) for x in requirements_files),
            cmd_arguments=cmd_arguments,
            install_cmd=install_cmd
        )

        logger.debug("Installing Python requirements with Dockerfile: %s", dockerfile)

        return dockerfile