Skip to content

Commit e8098aa

Browse files
committed
try fix docker
1 parent 281620a commit e8098aa

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

Dockerfile

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,19 @@ ENV UV_LINK_MODE=copy
1313

1414
# copy pyproject.toml first to leverage container image build cache
1515
COPY ./pyproject.toml /app/UltraSinger/pyproject.toml
16+
# Need to copy some minimal source structure for editable install
17+
RUN mkdir -p /app/UltraSinger/src
1618
WORKDIR /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
2527
COPY . /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
3231
RUN chown -R 1000:1000 /app/UltraSinger

0 commit comments

Comments
 (0)