mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-27 23:00:20 +08:00
Fix permission issue on legacy builds
This commit is contained in:
parent
477f330415
commit
357f89a4bf
10
Dockerfile
10
Dockerfile
@ -21,10 +21,16 @@ RUN mkdir -p \
|
|||||||
# Also create a home directory for this user (-m), as some common Python tools
|
# Also create a home directory for this user (-m), as some common Python tools
|
||||||
# (such as uv) interact with the user’s home directory.
|
# (such as uv) interact with the user’s home directory.
|
||||||
RUN useradd -m comfyui
|
RUN useradd -m comfyui
|
||||||
USER comfyui
|
|
||||||
|
|
||||||
# Install ComfyUI under /comfyui.
|
# Install ComfyUI under /comfyui and set folder ownership to the comfyui user.
|
||||||
|
# With the legacy Docker builder (DOCKER_BUILDKIT=0), WORKDIR always creates missing
|
||||||
|
# directories as root (even if a different USER is active). To ensure the comfyui user
|
||||||
|
# can write inside, ownership must be fixed manually.
|
||||||
WORKDIR /comfyui
|
WORKDIR /comfyui
|
||||||
|
RUN chown comfyui:comfyui .
|
||||||
|
|
||||||
|
# Install ComfyUI as ComfyUI
|
||||||
|
USER comfyui
|
||||||
|
|
||||||
# Set up a Python virtual environment and configure it as the default Python.
|
# Set up a Python virtual environment and configure it as the default Python.
|
||||||
#
|
#
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user