Compare commits

8 Commits

Author SHA1 Message Date
derek b1ae60d36f More fixes
Docker Build and Release Upload / build-uvicorn (push) Successful in 4m34s
Docker Build and Release Upload / build-rocm (push) Successful in 54m21s
Docker Build and Release Upload / build-cuda (push) Successful in 1h12m26s
2026-04-24 20:18:44 -07:00
derek c80d24411a test new route
Docker Build and Release Upload / build-uvicorn (push) Successful in 4m20s
Docker Build and Release Upload / build-rocm (push) Failing after 6m52s
Docker Build and Release Upload / build-cuda (push) Has been cancelled
2026-04-24 20:09:04 -07:00
derek c9f2e3bf2f Test sideload torchsde
Docker Build and Release Upload / build-rocm (push) Failing after 6m51s
Docker Build and Release Upload / build-uvicorn (push) Has been cancelled
Docker Build and Release Upload / build-cuda (push) Has been cancelled
2026-04-24 19:52:22 -07:00
derek d5de4893ec Fix packages
Docker Build and Release Upload / build-uvicorn (push) Successful in 4m49s
Docker Build and Release Upload / build-rocm (push) Failing after 6m40s
Docker Build and Release Upload / build-cuda (push) Has been cancelled
2026-04-24 19:11:20 -07:00
derek 0b68bc2db0 fix package
Docker Build and Release Upload / build-rocm (push) Failing after 20s
Docker Build and Release Upload / build-cuda (push) Has been cancelled
Docker Build and Release Upload / build-uvicorn (push) Has been cancelled
2026-04-24 19:01:07 -07:00
derek 6266b91c6d Fix builder
Docker Build and Release Upload / build-rocm (push) Failing after 1m1s
Docker Build and Release Upload / build-uvicorn (push) Has been cancelled
Docker Build and Release Upload / build-cuda (push) Has been cancelled
2026-04-24 18:56:53 -07:00
derek feb21eb9a0 Merge branch 'main' of https://git.mistox.net/derek/ComfyUI-ARM64-Docker
Docker Build and Release Upload / build-rocm (push) Failing after 10s
Docker Build and Release Upload / build-uvicorn (push) Successful in 3m40s
Docker Build and Release Upload / build-cuda (push) Has been cancelled
2026-04-24 18:32:06 -07:00
derek 5e1f151630 Update to new Ubuntu LTS 2026-04-24 18:30:51 -07:00
2 changed files with 20 additions and 50 deletions
+18 -48
View File
@@ -1,50 +1,19 @@
# --- Stage 1: The Builder --- # Use the official ROCm base image
FROM ubuntu:24.04 AS builder FROM ubuntu:26.04
ENV DEBIAN_FRONTEND=noninteractive # Set environment variables for 7900 XTX (gfx1100)
RUN apt update && apt install -y \
git cmake ninja-build python3-pip python3-venv \
libnuma-dev libpci-dev libelf-dev libdrm-dev \
build-essential g++-13 gcc-13
WORKDIR /src
RUN git clone https://github.com/ROCm/TheRock.git
WORKDIR /src/TheRock
# Configure for gfx1100 (7900 XTX) on Aarch64
# We use a venv to manage the build tools
RUN python3 -m venv venv && \
./venv/bin/pip install --upgrade pip && \
./venv/bin/pip install -r requirements.txt
# Compile a subset of ROCm (HIP + KFD) needed for runtime
RUN cmake -S . -B build \
-G Ninja \
-DTHEROCK_AMDGPU_TARGETS="gfx1100" \
-DCMAKE_INSTALL_PREFIX=/opt/rocm \
-DTHEROCK_ENABLE_ALL=OFF \
-DTHEROCK_ENABLE_HIP=ON \
-DTHEROCK_ENABLE_ROCBLAS=ON
RUN cmake --build build --target install
# --- Stage 2: Final Runtime ---
FROM ubuntu:24.04
# Core Environment Variables
ENV HSA_OVERRIDE_GFX_VERSION=11.0.0
ENV TORCH_ROCM_AOTRITON_ENABLE_EXPERIMENTAL=1
ENV ROCM_PATH=/opt/rocm
ENV LD_LIBRARY_PATH=/opt/rocm/lib:/usr/lib/aarch64-linux-gnu:$LD_LIBRARY_PATH
ENV PIP_BREAK_SYSTEM_PACKAGES=1 ENV PIP_BREAK_SYSTEM_PACKAGES=1
ENV PYTHONUNBUFFERED=1 ENV PYTHONUNBUFFERED=1
# Copy compiled ROCm from builder
COPY --from=builder /opt/rocm /opt/rocm
RUN apt update -y && apt install -y --no-install-recommends \ RUN apt update -y && apt install -y --no-install-recommends \
python3-pip python3-dev git libgl1 libglib2.0-0 \ rocm \
libnuma1 libpci3 libelf1 \ python3-pip \
python3-dev \
python3-torch-rocm \
python3-torchaudio \
git \
libgl1 \
libglib2.0-bin \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
WORKDIR /app WORKDIR /app
@@ -52,13 +21,14 @@ WORKDIR /app
# Clone ComfyUI # Clone ComfyUI
RUN git clone https://github.com/comfyanonymous/ComfyUI.git . RUN git clone https://github.com/comfyanonymous/ComfyUI.git .
# Install PyTorch Aarch64 ROCm Wheels # Create sub dependancy
# NOTE: As of 2026, check the PyTorch nightly/stable index for the Aarch64-specific ROCm wheels RUN grep -vE 'torch|nvidia|cuda|triton|kornia|spandrel' requirements.txt > req_no_torch.txt
RUN pip3 install --no-cache-dir torch torchvision torchaudio \
--index-url https://download.pytorch.org/whl/rocm6.2
# Install ComfyUI dependencies # Install non torch dependant requirements
RUN pip3 install --no-cache-dir -r requirements.txt RUN pip3 install --no-cache-dir --break-system-packages -r req_no_torch.txt
# Manually install the sensitive ones with --no-deps
RUN pip3 install --no-deps --break-system-packages torchsde kornia spandrel
# Setup Manager # Setup Manager
WORKDIR /app/custom_nodes WORKDIR /app/custom_nodes
+2 -2
View File
@@ -11,8 +11,8 @@ services:
- OLLAMA_KEEP_ALIVE=24h - OLLAMA_KEEP_ALIVE=24h
- HSA_OVERRIDE_GFX_VERSION=11.0.0 # This is for the RX 7900XTX - HSA_OVERRIDE_GFX_VERSION=11.0.0 # This is for the RX 7900XTX
devices: devices:
- /dev/kfd:/dev/kfd # Shared surface driver for ROCm - /dev/kfd:/dev/kfd
- /dev/dri:/dev/dri # Direct Rendering Infrastructure for GPU access - /dev/dri:/dev/dri
ollama-webui: ollama-webui:
container_name: ai-ollama-webui container_name: ai-ollama-webui