text: Title: `/gradio_api/file=` may not work with docker
  Body: ### Describe the bug
  
  When I deploy the gradio app with docker and mount a volume which path is included in `allowed_paths`, I got an error `{"detail":"File not allowed:images/0.jpg}`
  ![image](https://github.com/user-attachments/assets/91a0c28b-355a-4d6f-8871-c6f990db821e)
  
  When started locally, the path can be accessed normally.
  
  ### Have you searched existing issues?  🔎
  
  - [X] I have searched and found no existing issues
  
  ### Reproduction
  
  ```python
  import gradio as gr
  
  with gr.Blocks(
      title="MMKG-RAG", css_paths=[Path("src/mgrag/gui/front/index.css")]
  ) as demo:
      gr.Markdown(
          "# MMKG-RAG\n\n Enhancing Retrieval-Augmented Generation with Multi-Modal Knowledge Graph Integration. [GitHub](https://github.com/wenzhaoabc/mmkg-rag)")
  
  if __name__ == "__main__":
      demo.launch(
          allowed_paths=[
              "/root_path/",
          ],
      )
  ```
  
  Docker start command:
  
  ```bash
  docker run -p 7860:7860 -v ~/project/root_path:/root_path --name project project:v2
  ```
  
  When I accessed 'http://127.0.0.1:7860', I got an error `{"detail":"File not allowed:images/0.jpg}`
  
  
  ### Screenshot
  
  _No response_
  
  ### Logs
  
  _No response_
  
  ### System Info
  
  ```shell
  Gradio Environment Information:
  ------------------------------
  Operating System: Linux
  gradio version: 5.8.0
  gradio_client version: 1.5.1
  
  ------------------------------------------------
  gradio dependencies in your environment:
  
  aiofiles: 23.2.1
  anyio: 4.7.0
  audioop-lts is not installed.
  fastapi: 0.115.6
  ffmpy: 0.4.0
  gradio-client==1.5.1 is not installed.
  httpx: 0.28.1
  huggingface-hub: 0.26.5
  jinja2: 3.1.4
  markupsafe: 2.1.5
  numpy: 2.2.0
  orjson: 3.10.12
  packaging: 24.2
  pandas: 2.2.3
  pillow: 11.0.0
  pydantic: 2.10.3
  pydub: 0.25.1
  python-multipart: 0.0.19
  pyyaml: 6.0.2
  ruff: 0.8.2
  safehttpx: 0.1.6
  semantic-version: 2.10.0
  starlette: 0.41.3
  tomlkit: 0.13.2
  typer: 0.15.1
  typing-extensions: 4.12.2
  urllib3: 2.2.3
  uvicorn: 0.32.1
  authlib; extra == 'oauth' is not installed.
  itsdangerous; extra == 'oauth' is not installed.
  
  
  gradio_client dependencies in your environment:
  
  fsspec: 2024.10.0
  httpx: 0.28.1
  huggingface-hub: 0.26.5
  packaging: 24.2
  typing-extensions: 4.12.2
  websockets: 14.1
  ```
  
  
  ### Severity
  
  I can work around it