Skip to content

Commit 972eccc

Browse files
add opengl egl support on nvidia gpu
2 parents b7ba473 + 6aa3d73 commit 972eccc

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

docker/Dockerfile.base

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,20 @@ RUN apt update && apt install -yqq \
1919
nano \
2020
socat \
2121
libsndfile1 \
22-
build-essential llvm tk-dev && \
22+
build-essential \
23+
llvm tk-dev \
24+
libglvnd-dev && \
2325
rm -rf /var/lib/apt/lists/*
2426

27+
#enable opengl support with nvidia gpu
28+
RUN printf '%s\n' \
29+
'{' \
30+
' "file_format_version" : "1.0.0",' \
31+
' "ICD" : {' \
32+
' "library_path" : "libEGL_nvidia.so.0"' \
33+
' }' \
34+
'}' > /usr/share/glvnd/egl_vendor.d/10_nvidia.json
35+
2536
# Conda setup
2637
RUN mkdir -p /workspace/comfystream && \
2738
wget "https://repo.anaconda.com/miniconda/Miniconda3-${CONDA_VERSION}-Linux-x86_64.sh" -O /tmp/miniconda.sh && \

0 commit comments

Comments
 (0)