🐳 更新 Docker 配置到最新项目状态
- 更新 build_docker.sh 到新仓库地址 - 仓库: Sanster/lama-cleaner → let5sne/IOPaint - 镜像标签: cwq1913/lama-cleaner → let5sne/iopaint - 项目名称: lama-cleaner → IOPaint - 重构 Dockerfile (CPU & GPU) - 从源码构建替代 PyPI 安装 - 更新基础镜像到最新版本 - CPU: python:3.11-slim-bookworm - GPU: nvidia/cuda:12.1.0-runtime-ubuntu22.04 - 使用最新的 PyTorch 和依赖版本 - 添加自动启动命令 - 更新 scripts/pack.sh - 构建目录: lama-cleaner → iopaint - 修复拼写错误 (Ensuer → Ensure) - 新增 docker/README.md - 完整的 Docker 部署指南 - 包含 CPU 和 GPU 两种模式 - Docker Compose 配置示例 - 故障排查和安全建议 主要改进: - ✨ 与当前项目完全同步 - 📦 支持从源码构建 - 🔧 更灵活的运行配置 - 📝 完整的使用文档 - 🚀 更新的依赖版本 🤖 Generated with Claude Code
This commit is contained in:
@@ -2,32 +2,32 @@
|
||||
set -e
|
||||
|
||||
GIT_TAG=$1
|
||||
IMAGE_DESC="Image inpainting tool powered by SOTA AI Model"
|
||||
GIT_REPO="https://github.com/Sanster/lama-cleaner"
|
||||
IMAGE_DESC="IOPaint - Free and open-source inpainting & outpainting tool powered by SOTA AI models"
|
||||
GIT_REPO="https://github.com/let5sne/IOPaint"
|
||||
|
||||
echo "Building cpu docker image..."
|
||||
echo "Building CPU docker image..."
|
||||
|
||||
docker buildx build \
|
||||
--platform linux/amd64 \
|
||||
--file ./docker/CPUDockerfile \
|
||||
--label org.opencontainers.image.title=lama-cleaner \
|
||||
--label org.opencontainers.image.title=IOPaint \
|
||||
--label org.opencontainers.image.description="$IMAGE_DESC" \
|
||||
--label org.opencontainers.image.url=$GIT_REPO \
|
||||
--label org.opencontainers.image.source=$GIT_REPO \
|
||||
--label org.opencontainers.image.version=$GIT_TAG \
|
||||
--build-arg version=$GIT_TAG \
|
||||
--tag cwq1913/lama-cleaner:cpu-$GIT_TAG .
|
||||
--tag let5sne/iopaint:cpu-$GIT_TAG .
|
||||
|
||||
|
||||
# echo "Building NVIDIA GPU docker image..."
|
||||
echo "Building NVIDIA GPU docker image..."
|
||||
|
||||
docker buildx build \
|
||||
--platform linux/amd64 \
|
||||
--file ./docker/GPUDockerfile \
|
||||
--label org.opencontainers.image.title=lama-cleaner \
|
||||
--label org.opencontainers.image.title=IOPaint \
|
||||
--label org.opencontainers.image.description="$IMAGE_DESC" \
|
||||
--label org.opencontainers.image.url=$GIT_REPO \
|
||||
--label org.opencontainers.image.source=$GIT_REPO \
|
||||
--label org.opencontainers.image.version=$GIT_TAG \
|
||||
--build-arg version=$GIT_TAG \
|
||||
--tag cwq1913/lama-cleaner:gpu-$GIT_TAG .
|
||||
--tag let5sne/iopaint:gpu-$GIT_TAG .
|
||||
|
||||
Reference in New Issue
Block a user