From e9a99d0ae584848c5752ec07718782a17725d698 Mon Sep 17 00:00:00 2001 From: John Doe Date: Mon, 24 Nov 2025 00:23:48 -0500 Subject: [PATCH] cleanup dockerfile logic --- Dockerfiles/Dockerfile.comfyui-rocm7.1 | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/Dockerfiles/Dockerfile.comfyui-rocm7.1 b/Dockerfiles/Dockerfile.comfyui-rocm7.1 index 64288c4..0427d5f 100644 --- a/Dockerfiles/Dockerfile.comfyui-rocm7.1 +++ b/Dockerfiles/Dockerfile.comfyui-rocm7.1 @@ -1,10 +1,26 @@ # ComfyUI with ROCm support for different AMD GPU architectures FROM rocm/dev-ubuntu-24.04:7.1-complete AS default -RUN apt-get update \ - && apt-get install -y ca-certificates libvulkan1 git python3-venv python3-full python3-pip \ - && apt-get clean \ - && rm -rf /var/lib/apt/lists/* +RUN apt-get update + +#Known good packages for ComfyUI on ROCm +RUN apt-get install -y ca-certificates libvulkan1 git python3-venv python3-full python3-pip + + +# Install ROCm libraries required for PyTorch and ComfyUI +RUN apt-get install -y migraphx + +#install dependencies for libgthread +RUN apt-get install -y \ + libglib2.0-0 libgthread-2.0-0 libgtk-3-0 libgdk-pixbuf2.0-0 \ + libgl1 libglib2.0-dev libsm6 libxext6 libxrender-dev \ + libgomp1 libgstreamer1.0-0 libgstreamer-plugins-base1.0-0 \ + libegl1 libxrandr2 libxss1 libxcursor1 libxcomposite1 libxdamage1 \ + libxfixes3 libxi6 libxinerama1 libxrandr2 libxrender1 + +RUN apt-get clean + +RUN rm -rf /var/lib/apt/lists/* # Copy ComfyUI repository and pre-built virtual environment