Skip to content

Document how to disable dev dependency installation in Docker builds #17027

@aeroyorch

Description

@aeroyorch

Summary

Hi!

In the Docker best practices guide’s Optimizations section, it would be helpful to document how to skip dev dependencies during production builds through:

ENV UV_NO_DEV=1

Or:

uv sync --no-dev

A short subsection explaining when and how to use these options in Dockerfiles would improve clarity for production scenarios.

Thanks, and great work with uv! 🚀

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or improvement to existing functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions