minor fix
This commit is contained in:
@@ -16,9 +16,10 @@ RUN apt update && apt install -y \
|
|||||||
sox \
|
sox \
|
||||||
libsox-dev
|
libsox-dev
|
||||||
|
|
||||||
# 2. Clone and build the torchaudio
|
# 2. Clone and build the torchaudio stable
|
||||||
RUN git clone -b main https://github.com/pytorch/audio.git && \
|
RUN wget https://github.com/pytorch/audio/archive/refs/tags/v2.11.0.tar.gz && \
|
||||||
cd audio && \
|
tar -xf v2.11.0.tar.gz && \
|
||||||
|
cd audio-2.11.0 && \
|
||||||
pip install --no-build-isolation --no-deps -v .
|
pip install --no-build-isolation --no-deps -v .
|
||||||
|
|
||||||
# Set working directory
|
# Set working directory
|
||||||
|
|||||||
@@ -34,6 +34,11 @@ RUN apt update -y && \
|
|||||||
zlib1g-dev \
|
zlib1g-dev \
|
||||||
libncurses5-dev \
|
libncurses5-dev \
|
||||||
libopenblas-dev \
|
libopenblas-dev \
|
||||||
|
libjpeg-dev \
|
||||||
|
libpng-dev \
|
||||||
|
libavcodec-dev \
|
||||||
|
libavformat-dev \
|
||||||
|
libswscale-dev \
|
||||||
libpthreadpool-dev \
|
libpthreadpool-dev \
|
||||||
libgoogle-glog-dev \
|
libgoogle-glog-dev \
|
||||||
libgtest-dev \
|
libgtest-dev \
|
||||||
@@ -147,11 +152,21 @@ RUN git clone https://github.com/pytorch/pytorch.git && \
|
|||||||
# Build pytorch-audio
|
# Build pytorch-audio
|
||||||
FROM pytorch AS torchaudio
|
FROM pytorch AS torchaudio
|
||||||
WORKDIR /build/torchaudio
|
WORKDIR /build/torchaudio
|
||||||
|
RUN wget https://github.com/pytorch/audio/archive/refs/tags/v2.11.0.tar.gz && \
|
||||||
|
tar -xf v2.11.0.tar.gz && \
|
||||||
|
cd audio-2.11.0 && \
|
||||||
|
pip install --no-build-isolation --no-deps -v .
|
||||||
|
# Tested Working via comfyui-cuda-dockerfile
|
||||||
|
|
||||||
# Build pytorch-vision
|
# Build pytorch-vision
|
||||||
FROM torchaudio AS torchvision
|
FROM torchaudio AS torchvision
|
||||||
WORKDIR /build/torchaudio
|
WORKDIR /build/torchaudio
|
||||||
RUN git clone https://github.com/pytorch/vision.git
|
ENV FORCE_CUDA=0
|
||||||
|
RUN git clone https://github.com/pytorch/vision.git . && \
|
||||||
|
pip install numpy pillow ninja setuptools wheel && \
|
||||||
|
python setup.py bdist_wheel && \
|
||||||
|
pip install dist/torchvision-*.whl
|
||||||
|
# Not tested and not verified ROCM build
|
||||||
|
|
||||||
# Build final stripped down image
|
# Build final stripped down image
|
||||||
FROM ubuntu:26.04
|
FROM ubuntu:26.04
|
||||||
|
|||||||
Reference in New Issue
Block a user