chore: docker for developing
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
FROM alpine/git:latest AS builder
|
||||
WORKDIR /app
|
||||
RUN git clone --depth 1 --branch v0.3.67 https://github.com/comfyanonymous/ComfyUI.git ComfyUI && \
|
||||
rm -rf ComfyUI/.git
|
||||
|
||||
FROM pytorch/pytorch:2.6.0-cuda12.4-cudnn9-runtime
|
||||
WORKDIR /app
|
||||
COPY --from=builder /app/ComfyUI /app/ComfyUI
|
||||
WORKDIR /app/ComfyUI
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends \
|
||||
git \
|
||||
curl \
|
||||
build-essential \
|
||||
&& pip install --no-cache-dir -r requirements.txt \
|
||||
&& apt-get remove -y build-essential curl \
|
||||
&& apt-get autoremove -y && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
COPY ./requirements.txt ./tmp.txt
|
||||
RUN pip install --no-cache-dir -r tmp.txt && rm tmp.txt
|
||||
EXPOSE 8188
|
||||
CMD ["python", "main.py", "--listen", "0.0.0.0", "--port", "8188"]
|
||||
@@ -0,0 +1,24 @@
|
||||
FROM python:3.11-slim-bookworm
|
||||
ENV POETRY_HOME="/opt/poetry"
|
||||
ENV POETRY_VERSION="2.2.1"
|
||||
ENV POETRY_VIRTUALENVS_PATH="/cache/.venv"
|
||||
ENV POETRY_VIRTUALENVS_IN_PROJECT="false"
|
||||
ENV PATH="$POETRY_HOME/bin:$PATH"
|
||||
WORKDIR /app
|
||||
RUN mkdir -p /cache/.venv && chmod 777 /cache/.venv
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends \
|
||||
git \
|
||||
curl \
|
||||
build-essential \
|
||||
ca-certificates \
|
||||
&& curl -sSL https://install.python-poetry.org | python - \
|
||||
&& curl -1sLf 'https://dl.cloudsmith.io/public/task/task/setup.deb.sh' | bash \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y task \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
RUN poetry self add \
|
||||
poetry-plugin-export \
|
||||
poetry-plugin-shell
|
||||
RUN task --version && poetry --version
|
||||
Reference in New Issue
Block a user