File size: 709 Bytes
da58145
 
4869701
da58145
 
 
 
 
9453c81
da58145
 
 
90642bc
 
 
 
 
da58145
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# 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"]