init test
Docker Build and Release Upload / build-rocm (push) Failing after 5m20s

This commit is contained in:
2026-04-27 16:57:28 -07:00
parent b1ae60d36f
commit dccb9cfb4d
2 changed files with 26 additions and 53 deletions
+25 -2
View File
@@ -1,21 +1,44 @@
# Use the official ROCm base image
FROM ubuntu:26.04
FROM ubuntu:26.04 as reqs
# Set environment variables for 7900 XTX (gfx1100)
ENV PIP_BREAK_SYSTEM_PACKAGES=1
ENV PYTHONUNBUFFERED=1
ENV DEBIAN_FRONTEND=noninteractive
ENV ROCM_PATH=/opt/rocm
ENV PYTORCH_ROCM_ARCH=gfx1100
ENV HIP_VISIBLE_DEVICES=0
ENV PYTORCH_ROCM_ARCH=your_gfx_arch
RUN apt update -y && apt install -y --no-install-recommends \
rocm \
python3-pip \
python3-dev \
python3-torch-rocm \
python3-torchaudio \
git \
libgl1 \
libglib2.0-bin \
cmake \
ninja-build \
pkg-config \
libavcodec-dev \
libavformat-dev \
libswresample-dev \
&& rm -rf /var/lib/apt/lists/*
FROM reqs as torch-audio
WORKDIR /builder
RUN git clone https://github.com/pytorch/audio.git && \
cd audio && \
git submodule update --init --recursive && \
# We must ensure it uses the system python/torch
BUILD_ROCM=1 python3 setup.py install && \
cd .. && rm -rf audio
FROM torch-audio as runner
WORKDIR /app
# Clone ComfyUI