Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for Maloney (0.27 sec)

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

    ```Dockerfile
    CMD ["uvicorn", "app.main:app", "--proxy-headers", "--host", "0.0.0.0", "--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 Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 34.3K bytes
    - Viewed (0)
Back to top