mirror of
				https://github.com/AbdBarho/stable-diffusion-webui-docker.git
				synced 2025-10-27 08:14:26 -04:00 
			
		
		
		
	refactor: Support running Docker container as root or non-root user
This commit introduces flexibility in the Docker setup by allowing the container to run either as the `root` user or a specified non-root user. It updates both the `docker-compose.yml` and `Dockerfile` to include environment variables for setting the user ID, group ID, username, and group name. Additionally, it modifies the entrypoint script to handle these configurations appropriately, ensuring compatibility with different user setups.
This commit is contained in:
		| @@ -45,6 +45,10 @@ services: | ||||
|     image: sd-comfy:7 | ||||
|     environment: | ||||
|       - CLI_ARGS= | ||||
|       - USE_UID=0 | ||||
|       - USE_GID=0 | ||||
|       - USE_USER=root | ||||
|       - USE_GROUP=root | ||||
|  | ||||
|  | ||||
|   comfy-cpu: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user