Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for copyOf (0.39 sec)

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

    ```
    
    Then you would just have to change the corresponding paths to copy the file inside the `Dockerfile`:
    
    ```{ .dockerfile .annotate hl_lines="10  13" }
    FROM python:3.9
    
    WORKDIR /code
    
    COPY ./requirements.txt /code/requirements.txt
    
    RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
    
    # (1)
    COPY ./main.py /code/
    
    # (2)
    CMD ["fastapi", "run", "main.py", "--port", "80"]
    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