Define unprivileged Qwen image runtime user
This commit is contained in:
@@ -10,6 +10,9 @@ RUN test -n "$COMFYUI_COMMIT" \
|
|||||||
&& python -m pip install --break-system-packages --no-cache-dir \
|
&& python -m pip install --break-system-packages --no-cache-dir \
|
||||||
-r /opt/ComfyUI/requirements.txt \
|
-r /opt/ComfyUI/requirements.txt \
|
||||||
&& apt-get purge -y --auto-remove git \
|
&& apt-get purge -y --auto-remove git \
|
||||||
|
&& groupadd --gid 10002 qwen-image \
|
||||||
|
&& useradd --uid 10002 --gid 10002 --no-create-home \
|
||||||
|
--home-dir /nonexistent --shell /usr/sbin/nologin qwen-image \
|
||||||
&& rm -rf /var/lib/apt/lists/* /root/.cache
|
&& rm -rf /var/lib/apt/lists/* /root/.cache
|
||||||
|
|
||||||
WORKDIR /opt/ComfyUI
|
WORKDIR /opt/ComfyUI
|
||||||
|
|||||||
Reference in New Issue
Block a user