| |
| FROM python:3.11-slim |
|
|
| |
| ENV GRADIO_SERVER_NAME=0.0.0.0 \ |
| GRADIO_SERVER_PORT=7860 \ |
| PYTHONUNBUFFERED=1 |
|
|
| |
| RUN apt-get update && apt-get install -y \ |
| git \ |
| build-essential \ |
| && rm -rf /var/lib/apt/lists/* \ |
| && apt-get clean |
|
|
| |
| RUN pip install --no-cache-dir uv |
|
|
| |
| WORKDIR /app |
| RUN git clone https://codeberg.org/Cognibuild/ROOP-FLOYD.git . |
|
|
| |
| RUN uv pip install --system --no-cache \ |
| torch torchvision --index-url https://download.pytorch.org/whl/cpu |
|
|
| |
| RUN uv pip install --system --no-cache \ |
| numpy \ |
| opencv-python-headless \ |
| onnx \ |
| insightface \ |
| albucore \ |
| psutil \ |
| onnxruntime \ |
| tqdm \ |
| ftfy \ |
| regex \ |
| pyvirtualcam |
|
|
| |
| RUN pip install --no-cache-dir --force-reinstall pydantic==2.10.6 |
| RUN pip install --no-cache-dir gradio==5.13.0 |
|
|
| |
| EXPOSE 7860 |
|
|
| |
| CMD ["python", "run.py"] |