mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-14 16:20:50 +08:00
Don't rebuild whole image when APT_EXTRA_PACKAGES changes
This commit is contained in:
parent
4fff4dc032
commit
ab4a2a575e
13
Dockerfile
13
Dockerfile
@ -5,8 +5,6 @@
|
||||
# Use the recommended Python version 3.12, as specified in the README.
|
||||
FROM python:3.12.11-bookworm AS comfyui-base
|
||||
|
||||
ARG APT_EXTRA_PACKAGES
|
||||
|
||||
# Install cmake, which is an indirect installation dependencies
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends cmake
|
||||
|
||||
@ -72,12 +70,13 @@ VOLUME [ "/data", "/comfyui/.venv", "/comfyui/custom_nodes", "/comfyui/models",
|
||||
# dependencies
|
||||
USER root
|
||||
|
||||
# Install additional system dependencies
|
||||
RUN apt-get install -y --no-install-recommends $APT_EXTRA_PACKAGES \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Configure entrypoint
|
||||
RUN chmod +x entrypoint.sh
|
||||
ENTRYPOINT [ "./entrypoint.sh" ]
|
||||
CMD [ "python", "./main.py" ]
|
||||
|
||||
# Install additional system dependencies
|
||||
ARG APT_EXTRA_PACKAGES
|
||||
RUN apt-get install -y --no-install-recommends $APT_EXTRA_PACKAGES \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
Loading…
Reference in New Issue
Block a user