Skip to content

Update Dockerfile to exclude dev dependencies and adjust PATH - #16

Merged
ritwikshanker merged 1 commit into
mainfrom
bugFix/docker-image-size
Jul 1, 2026
Merged

Update Dockerfile to exclude dev dependencies and adjust PATH#16
ritwikshanker merged 1 commit into
mainfrom
bugFix/docker-image-size

Conversation

@ritwikshanker

Copy link
Copy Markdown
Collaborator

This pull request makes a few updates to the Dockerfile to optimize the production image and environment setup. The most notable changes involve modifying dependency installation to exclude development packages, updating the PATH to include the virtual environment, and simplifying the entrypoint command.

Dockerfile improvements:

  • Changed the uv sync command to use --no-dev, ensuring that only production dependencies (excluding development packages) are installed.
  • Added the virtual environment's bin directory to the PATH by setting ENV PATH="/app/.venv/bin:$PATH", which ensures that executables from the virtual environment are accessible.
  • Updated the ENTRYPOINT to call uvicorn directly, removing the redundant uv run wrapper for a simpler and more standard container startup.…ration

@ritwikshanker
ritwikshanker merged commit d29ac45 into main Jul 1, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant