MagicFace_Lab / Dockerfile
MagicFaceLab's picture
Create Dockerfile
ebc7ff8 verified
raw
history blame
564 Bytes
# 使用 Python 3.10 基础镜像
FROM python:3.10
# 设置工作目录
WORKDIR /home/user/app
# 安装系统依赖
RUN apt-get update && apt-get install -y \
git \
ffmpeg \
libsm6 \
libxext6 \
cmake \
&& rm -rf /var/lib/apt/lists/*
# 克隆 Roop 仓库
RUN git clone https://github.com/s0md3v/roop.git /home/user/app/roop
# 进入 Roop 目录并安装 Python 依赖
WORKDIR /home/user/app/roop
RUN pip install --no-cache-dir -r requirements.txt
# 设置默认启动命令
WORKDIR /home/user/app
COPY app.py .
CMD ["python", "app.py"]