-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathDockerfile
40 lines (31 loc) · 1.2 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
ARG BASE_IMAGE=livepeer/comfyui-base:latest
FROM ${BASE_IMAGE}
RUN echo "Using base image: ${BASE_IMAGE}"
ENV PATH="/workspace/miniconda3/bin:${PATH}"
EXPOSE 8188
EXPOSE 8889
EXPOSE 3000
EXPOSE 1024-65535/udp
RUN apt-get update && apt-get install -y supervisor
WORKDIR /
# Install NVM
ENV NVM_DIR=/root/.nvm
ENV NODE_VERSION=18.18.0
RUN wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
# Install node and npm
RUN bash -c "source $NVM_DIR/nvm.sh \
&& nvm install $NODE_VERSION \
&& nvm alias default $NODE_VERSION \
&& nvm use default"
# Add node and npm to path so the commands are available
ENV NODE_PATH=$NVM_DIR/v$NODE_VERSION/lib/node_modules
ENV PATH=$NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH
RUN conda init bash
# Create the supervisor configuration file for ComfyUI and ComfyStream
RUN mkdir -p /etc/supervisor/conf.d
COPY .devcontainer/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
WORKDIR /workspace/comfystream
COPY .devcontainer/entrypoint.sh /workspace/comfystream/.devcontainer/entrypoint.sh
RUN chmod +x /workspace/comfystream/.devcontainer/entrypoint.sh
ENTRYPOINT ["/workspace/comfystream/.devcontainer/entrypoint.sh"]
CMD ["/bin/bash"]