Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for Valore (0.23 sec)

  1. docs/en/docs/deployment/docker.md

    ```Dockerfile
    CMD ["fastapi", "run", "app/main.py", "--proxy-headers", "--port", "80"]
    ```
    
    #### Docker Cache
    
    There's an important trick in this `Dockerfile`, we first copy the **file with the dependencies alone**, not the rest of the code. Let me tell you why is that.
    
    ```Dockerfile
    COPY ./requirements.txt /code/requirements.txt
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 34K bytes
    - Viewed (0)
Back to top