Spaces:
Runtime error
Runtime error
Download Dockerfile from Manofem/Roop-Deepake: direct link, hf CLI and curl.
- Browser
- Download file 709 Bytes
-
https://huggingface.co/spaces/Manofem/Roop-Deepake/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Manofem/Roop-Deepake/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Manofem/Roop-Deepake/resolve/main/Dockerfile
709 Bytes
| # Use an official Python runtime as a parent image | |
| FROM python:3.8 | |
| User root | |
| # Set the working directory in the container | |
| WORKDIR /app | |
| # Clone the Git repository into the container | |
| RUN git clone https://github.com/s0md3v/roop.git . | |
| RUN cd roop | |
| # Install any dependencies | |
| RUN pip install -r requirements.txt | |
| # Download the ONNX model and organize it | |
| RUN wget https://huggingface.co/ezioruan/inswapper_128.onnx/resolve/main/inswapper_128.onnx -O inswapper_128.onnx && \ | |
| mkdir models && \ | |
| mv inswapper_128.onnx ./models | |
| # Expose the port on which the Uvicorn server will run | |
| EXPOSE 7860 | |
| # Specify the command to run on container start | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |