From 05446cd736b5856848d8496c31c458846448a7c1 Mon Sep 17 00:00:00 2001 From: Aditya Pratap Singh Date: Mon, 14 Oct 2024 23:53:11 +0530 Subject: [PATCH] Include `uvx` installation in Docker examples (#8179) closes #7947 --- docs/guides/integration/docker.md | 8 ++++---- docs/guides/integration/fastapi.md | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/guides/integration/docker.md b/docs/guides/integration/docker.md index caf29042c..93586161c 100644 --- a/docs/guides/integration/docker.md +++ b/docs/guides/integration/docker.md @@ -74,7 +74,7 @@ official distroless Docker image: ```dockerfile title="Dockerfile" FROM python:3.12-slim-bookworm -COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin/uv +COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/ ``` Or, with the installer: @@ -100,7 +100,7 @@ Note this requires `curl` to be available. In either case, it is best practice to pin to a specific uv version, e.g., with: ```dockerfile -COPY --from=ghcr.io/astral-sh/uv:0.4.20 /uv /bin/uv +COPY --from=ghcr.io/astral-sh/uv:0.4.20 /uv /uvx /bin/ ``` Or, with the installer: @@ -342,7 +342,7 @@ a big time saver. ```dockerfile title="Dockerfile" # Install uv FROM python:3.12-slim -COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin/uv +COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/ # Change the working directory to the `app` directory WORKDIR /app @@ -388,7 +388,7 @@ For example: ```dockerfile title="Dockerfile" # Install uv FROM python:3.12-slim AS builder -COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin/uv +COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/ # Change the working directory to the `app` directory WORKDIR /app diff --git a/docs/guides/integration/fastapi.md b/docs/guides/integration/fastapi.md index c2d6aef3e..23fe5f7ca 100644 --- a/docs/guides/integration/fastapi.md +++ b/docs/guides/integration/fastapi.md @@ -96,7 +96,7 @@ To deploy the FastAPI application with Docker, you can use the following `Docker FROM python:3.12-slim # Install uv. -COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin/uv +COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/ # Copy the application into the container. COPY . /app