From 4302d0b9a23efc2858561ecd72cb5ff4d3ed32bc Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Wed, 4 Sep 2024 11:49:37 -0500 Subject: [PATCH] Use `--no-dev` during installs --- Dockerfile | 4 ++-- Dockerfile.multistage | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 690f127..319e67a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,12 +14,12 @@ ENV UV_LINK_MODE=copy RUN --mount=type=cache,target=/root/.cache/uv \ --mount=type=bind,source=uv.lock,target=uv.lock \ --mount=type=bind,source=pyproject.toml,target=pyproject.toml \ - uv sync --frozen --no-install-project + uv sync --frozen --no-install-project --no-dev # Then, add the rest of the project source code and install it ADD . /app RUN --mount=type=cache,target=/root/.cache/uv \ - uv sync --frozen + uv sync --frozen --no-dev # Place executables in the environment at the front of the path ENV PATH="/app/.venv/bin:$PATH" diff --git a/Dockerfile.multistage b/Dockerfile.multistage index f054eb4..d1c6102 100644 --- a/Dockerfile.multistage +++ b/Dockerfile.multistage @@ -8,10 +8,10 @@ WORKDIR /app RUN --mount=type=cache,target=/root/.cache/uv \ --mount=type=bind,source=uv.lock,target=uv.lock \ --mount=type=bind,source=pyproject.toml,target=pyproject.toml \ - uv sync --frozen --no-install-project + uv sync --frozen --no-install-project --no-dev ADD . /app RUN --mount=type=cache,target=/root/.cache/uv \ - uv sync --frozen + uv sync --frozen --no-dev # Then, use a final image without uv