mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-23 12:50:18 +08:00
Don't rebuild whole image when APT_EXTRA_PACKAGES changes
This commit is contained in:
parent
357f89a4bf
commit
e1cf4f7420
13
Dockerfile
13
Dockerfile
@ -5,8 +5,6 @@
|
|||||||
# Use the recommended Python version 3.12, as specified in the README.
|
# Use the recommended Python version 3.12, as specified in the README.
|
||||||
FROM python:3.12.11-bookworm AS comfyui-base
|
FROM python:3.12.11-bookworm AS comfyui-base
|
||||||
|
|
||||||
ARG APT_EXTRA_PACKAGES
|
|
||||||
|
|
||||||
# Install cmake, which is an indirect installation dependencies
|
# Install cmake, which is an indirect installation dependencies
|
||||||
RUN apt-get update && apt-get install -y --no-install-recommends cmake
|
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
|
# dependencies
|
||||||
USER root
|
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
|
# Configure entrypoint
|
||||||
RUN chmod +x entrypoint.sh
|
RUN chmod +x entrypoint.sh
|
||||||
ENTRYPOINT [ "./entrypoint.sh" ]
|
ENTRYPOINT [ "./entrypoint.sh" ]
|
||||||
CMD [ "python", "./main.py" ]
|
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