diff --git a/src/together/lib/cli/api/beta/jig/jig.py b/src/together/lib/cli/api/beta/jig/jig.py index 11d3a951..11da5208 100644 --- a/src/together/lib/cli/api/beta/jig/jig.py +++ b/src/together/lib/cli/api/beta/jig/jig.py @@ -357,8 +357,9 @@ def _generate_dockerfile(config: Config) -> str: pip = "" if Path("pyproject.toml").exists(): pip = """COPY pyproject.toml . +ENV UV_PROJECT_ENVIRONMENT=/usr/local RUN --mount=type=cache,target=/root/.cache/uv \\ - uv pip install --system --compile-bytecode . && \\ + uv sync --inexact --no-dev --no-install-project --compile-bytecode && \\ (python -c "import sprocket" 2>/dev/null || (echo "sprocket not found in pyproject.toml, installing from pypi.together.ai..." && uv pip install --system --extra-index-url https://pypi.together.ai/ sprocket)) """