Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for 1013 (0.13 sec)

  1. docs/zh/docs/deployment/docker.md

    如果你的 FastAPI 是单个文件,例如没有`./app`目录的`main.py`,则你的文件结构可能如下所示:
    
    ```
    .
    ├── Dockerfile
    ├── main.py
    └── requirements.txt
    ```
    
    然后你只需更改相应的路径即可将文件复制到`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)
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 31.2K bytes
    - Viewed (0)
  2. docs/ko/docs/deployment/docker.md

    ```
    .
    ├── Dockerfile
    ├── main.py
    └── requirements.txt
    ```
    
    그러면 여러분들은 `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)
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 42.6K bytes
    - Viewed (0)
  3. docs/ru/docs/deployment/docker.md

    ```
    .
    ├── Dockerfile
    ├── main.py
    └── requirements.txt
    ```
    
    Вам нужно изменить в `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)
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 57.5K bytes
    - Viewed (0)
  4. docs/em/docs/deployment/docker.md

    ```
    .
    ├── Dockerfile
    ├── main.py
    └── requirements.txt
    ```
    
    ⤴️ 👆 🔜 ✔️ 🔀 🔗 ➡ 📁 📁 🔘 `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)
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 27.9K bytes
    - Viewed (0)
  5. docs/ja/docs/deployment/docker.md

    ```
    .
    ├── Dockerfile
    ├── main.py
    └── requirements.txt
    ```
    
    そうすれば、`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)
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 44.3K bytes
    - Viewed (0)
  6. docs/de/docs/deployment/docker.md

    ```
    .
    ├── Dockerfile
    ├── main.py
    └── requirements.txt
    ```
    
    Dann müssten Sie nur noch die entsprechenden Pfade ändern, um die Datei im `Dockerfile` zu kopieren:
    
    ```{ .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)
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 18:19:17 GMT 2024
    - 38.9K bytes
    - Viewed (0)
  7. docs/en/docs/deployment/docker.md

    ```
    .
    ├── Dockerfile
    ├── main.py
    └── requirements.txt
    ```
    
    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)
    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)
  8. docs/pt/docs/deployment/docker.md

    ```
    .
    ├── Dockerfile
    ├── main.py
    └── requirements.txt
    ```
    
    Então você só teria que alterar os caminhos correspondentes para copiar o arquivo dentro do `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)
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 37.4K bytes
    - Viewed (0)
Back to top