mirror of
https://github.com/rakuri255/UltraSinger.git
synced 2026-11-20 13:07:52 +09:00
add container image build action, optimize layering
This commit is contained in:
1 parent
ac3580d541
commit
c16746d1a4
3 files changed
+52
-29
No files matched your search
+2
-1
@@ -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" ]
|
||||
Reference in new issue
Block a user