Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for node (0.13 sec)

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

    def read_item(item_id: int, q: Union[str, None] = None):
        return {"item_id": item_id, "q": q}
    ```
    
    ### Dockerfile
    
    现在在相同的project目录创建一个名为`Dockerfile`的文件:
    
    ```{ .dockerfile .annotate }
    # (1)
    FROM python:3.9
    
    # (2)
    WORKDIR /code
    
    # (3)
    COPY ./requirements.txt /code/requirements.txt
    
    # (4)
    RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
    
    # (5)
    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

    def read_item(item_id: int, q: Union[str, None] = None):
        return {"item_id": item_id, "q": q}
    ```
    
    ### 도커파일
    
    이제 같은 프로젝트 디렉터리에 다음과 같은 파일 `Dockerfile`을 생성합니다:
    
    ```{ .dockerfile .annotate }
    # (1)
    FROM python:3.9
    
    # (2)
    WORKDIR /code
    
    # (3)
    COPY ./requirements.txt /code/requirements.txt
    
    # (4)
    RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
    
    # (5)
    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/fr/docs/deployment/docker.md

    ## Cluster en mode Docker Swarm avec Traefik et HTTPS
    
    Vous pouvez avoir un cluster en mode Docker Swarm configuré en quelques minutes (environ 20 min) avec un processus Traefik principal gérant HTTPS (y compris l'acquisition et le renouvellement des certificats).
    
    En utilisant le mode Docker Swarm, vous pouvez commencer par un "cluster" d'une seule machine (il peut même s'agir
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 12 00:06:16 GMT 2022
    - 7.5K bytes
    - Viewed (0)
  4. docs/ru/docs/deployment/docker.md

    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 ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "80"]
    ```
    
    1. Скопируйте непосредственно файл `main.py` в директорию `/code` (не указывайте `./app`).
    
    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)
  5. docs/em/docs/deployment/docker.md

    def read_item(item_id: int, q: Union[str, None] = None):
        return {"item_id": item_id, "q": q}
    ```
    
    ### 📁
    
    🔜 🎏 🏗 📁 ✍ 📁 `Dockerfile` ⏮️:
    
    ```{ .dockerfile .annotate }
    # (1)
    FROM python:3.9
    
    # (2)
    WORKDIR /code
    
    # (3)
    COPY ./requirements.txt /code/requirements.txt
    
    # (4)
    RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
    
    # (5)
    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)
  6. docs/ja/docs/deployment/docker.md

    def read_item(item_id: int, q: Union[str, None] = None):
        return {"item_id": item_id, "q": q}
    ```
    
    ### Dockerfile
    
    同じプロジェクト・ディレクトリに`Dockerfile`というファイルを作成します:
    
    ```{ .dockerfile .annotate }
    # (1)
    FROM python:3.9
    
    # (2)
    WORKDIR /code
    
    # (3)
    COPY ./requirements.txt /code/requirements.txt
    
    # (4)
    RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
    
    # (5)
    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)
  7. docs/en/docs/deployment/docker.md

    ```{ .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"]
    ```
    
    1. Copy the `main.py` file to the `/code` directory directly (without any `./app` directory).
    
    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/de/docs/deployment/docker.md

        Da das Programm unter `/code` gestartet wird und sich darin das Verzeichnis `./app` mit Ihrem Code befindet, kann **Uvicorn** `app` sehen und aus `app.main` **importieren**.
    
    !!! tip "Tipp"
        Lernen Sie, was jede Zeile bewirkt, indem Sie auf die Zahlenblasen im Code klicken. 👆
    
    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)
  9. docs/pt/docs/deployment/docker.md

    # (5)
    COPY ./app /code/app
    
    # (6)
    CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "80"]
    ```
    
    1. Inicie a partir da imagem base oficial do Python.
    
    2. Defina o diretório de trabalho atual para `/code`.
    
        Esse é o diretório onde colocaremos o arquivo `requirements.txt` e o diretório `app`.
    
    3. Copie o arquivo com os requisitos para o diretório `/code`.
    
    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