File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -13,20 +13,19 @@ ENV UV_LINK_MODE=copy
1313
1414# copy pyproject.toml first to leverage container image build cache
1515COPY ./pyproject.toml /app/UltraSinger/pyproject.toml
16+ # Need to copy some minimal source structure for editable install
17+ RUN mkdir -p /app/UltraSinger/src
1618WORKDIR /app/UltraSinger
1719
18- # Sync dependencies from pyproject.toml (will create uv.lock if not present )
19- RUN uv sync
20+ # Install dependencies from pyproject.toml directly without venv (container is already isolated )
21+ RUN uv pip install --system --python 3.12 -e . --no-build-isolation
2022
2123# Install PyTorch with CUDA support (override the CPU version from pyproject.toml)
22- RUN uv pip install torch==2.8.0 torchvision==0.23.0 torchaudio==2.8.0 --index-url https://download.pytorch.org/whl/cu128 --force -reinstall
24+ RUN uv pip install --system --python 3.12 torch==2.8.0 torchvision==0.23.0 torchaudio==2.8.0 --index-url https://download.pytorch.org/whl/cu128 --reinstall
2325
2426# copy sources late to allow for caching of layers which contain all the dependencies
2527COPY . /app/UltraSinger
2628
27- # Set venv path
28- ENV VIRTUAL_ENV=/app/UltraSinger/.venv
29- ENV PATH="$VIRTUAL_ENV/bin:$PATH"
3029
3130# no need to run as root
3231RUN chown -R 1000:1000 /app/UltraSinger
You can’t perform that action at this time.
0 commit comments