Define unprivileged Qwen image runtime user
This commit is contained in:
1 parent
5f190fd2de
commit
7407611e3e
1 file changed
+3
@@ -10,6 +10,9 @@ RUN test -n "$COMFYUI_COMMIT" \
|
||||
&& python -m pip install --break-system-packages --no-cache-dir \
|
||||
-r /opt/ComfyUI/requirements.txt \
|
||||
&& 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
|
||||
|
||||
WORKDIR /opt/ComfyUI
|
||||
|
||||
Reference in new issue
Block a user