add container image build action, optimize layering

This commit is contained in:
Benedikt Wagener committed 2025-01-31 15:27:42 +01:00
1 parent ac3580d541
commit c16746d1a4
3 files changed
+52 -29

No files matched your search

+2 -1
View File
@@ -6,7 +6,7 @@ RUN apt-get update \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
COPY . /app/UltraSinger
COPY ./requirements.txt /app/UltraSinger/requirements.txt
WORKDIR /app/UltraSinger
# no need to run as root
@@ -23,5 +23,6 @@ RUN pip install --no-cache-dir -r requirements.txt \
&& pip install --no-cache-dir torch==2.3.0 torchvision==0.18.0 torchaudio==2.3.0 --index-url https://download.pytorch.org/whl/cu121 \
&& pip install --no-cache-dir tensorflow[and-cuda]==2.16.1
COPY . /app/UltraSinger
WORKDIR /app/UltraSinger/src
CMD ["bash" ]