chore: docker for developing
This commit is contained in:
+6
-2
@@ -215,6 +215,12 @@ __marimo__/
|
||||
# Streamlit
|
||||
.streamlit/secrets.toml
|
||||
|
||||
# Temporary files
|
||||
tmp/
|
||||
|
||||
# Docker
|
||||
docker/
|
||||
|
||||
# Hugging Face artifacts
|
||||
*.safetensors
|
||||
*.vae
|
||||
@@ -256,5 +262,3 @@ Thumbs.db
|
||||
# Development tools config
|
||||
.pre-commit-config.yaml
|
||||
.commitizenrc
|
||||
pyproject.toml
|
||||
poetry.lock
|
||||
|
||||
+2
-3
@@ -215,9 +215,8 @@ __marimo__/
|
||||
# Streamlit
|
||||
.streamlit/secrets.toml
|
||||
|
||||
# Docker files
|
||||
docker/
|
||||
!docker/.gitkeep
|
||||
# Temporary files
|
||||
tmp/
|
||||
|
||||
# Hugging Face artifacts
|
||||
*.safetensors
|
||||
|
||||
+20
-7
@@ -1,6 +1,8 @@
|
||||
services:
|
||||
comfyui:
|
||||
build: .
|
||||
build:
|
||||
context: .
|
||||
dockerfile: docker/comfyui/Dockerfile
|
||||
container_name: comfyui
|
||||
runtime: nvidia
|
||||
environment:
|
||||
@@ -11,15 +13,26 @@ services:
|
||||
- POETRY_NO_INTERACTION=1
|
||||
- POETRY_CACHE_DIR=/tmp/poetry_cache
|
||||
volumes:
|
||||
- ./docker/models/checkpoints:/app/ComfyUI/models/checkpoints
|
||||
- ./docker/models/loras:/app/ComfyUI/models/loras
|
||||
- ./docker/models/vae:/app/ComfyUI/models/vae
|
||||
- ./docker/output:/app/ComfyUI/output
|
||||
- ./docker/workflows:/app/ComfyUI/user/default/workflows
|
||||
- ./docker/tmp:/app/ComfyUI/temp
|
||||
- ./tmp/models/checkpoints:/app/ComfyUI/models/checkpoints
|
||||
- ./tmp/models/loras:/app/ComfyUI/models/loras
|
||||
- ./tmp/models/vae:/app/ComfyUI/models/vae
|
||||
- ./tmp/output:/app/ComfyUI/output
|
||||
- ./tmp/workflows:/app/ComfyUI/user/default/workflows
|
||||
- ./tmp/tmp:/app/ComfyUI/temp
|
||||
- .:/app/ComfyUI/custom_nodes/ComfyUI-Diffusers
|
||||
ports:
|
||||
- "8188:8188"
|
||||
restart: unless-stopped
|
||||
stdin_open: true
|
||||
tty: true
|
||||
|
||||
dev:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: docker/dev/Dockerfile
|
||||
volumes:
|
||||
- .:/app
|
||||
- venv_data:/cache/.venv
|
||||
|
||||
volumes:
|
||||
venv_data:
|
||||
|
||||
@@ -12,8 +12,6 @@ RUN apt-get update && \
|
||||
git \
|
||||
curl \
|
||||
build-essential \
|
||||
&& curl -1sLf 'https://dl.cloudsmith.io/public/task/task/setup.deb.sh' | bash \
|
||||
&& curl -sSL 'https://install.python-poetry.org' | python - \
|
||||
&& pip install --no-cache-dir -r requirements.txt \
|
||||
&& apt-get remove -y build-essential curl \
|
||||
&& apt-get autoremove -y && \
|
||||
@@ -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