Add --no-sync flag to uv run in Dockerfiles
The uv run command was re-syncing dependencies at runtime and installing dev groups despite uv sync --no-group dev. Using --no-sync tells uv to use the already-synced dependencies without re-checking. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
2c45f6fe0c
commit
4772e23294
2 changed files with 2 additions and 2 deletions
|
|
@ -106,7 +106,7 @@ fi
|
|||
# Start MCP server in foreground
|
||||
echo "Starting MCP server..."
|
||||
cd /app/mcp
|
||||
exec /root/.local/bin/uv run main.py
|
||||
exec /root/.local/bin/uv run --no-sync main.py
|
||||
EOF
|
||||
|
||||
RUN chmod +x /start-services.sh
|
||||
|
|
|
|||
|
|
@ -78,4 +78,4 @@ HEALTHCHECK --interval=10s --timeout=5s --start-period=15s --retries=3 \
|
|||
CMD curl -f http://localhost:8000/health || exit 1
|
||||
|
||||
# Run the MCP server
|
||||
CMD ["uv", "run", "main.py"]
|
||||
CMD ["uv", "run", "--no-sync", "main.py"]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue