Roop-Deepake / Dockerfile
Manofem's picture
Update Dockerfile
4869701
raw
history blame contribute delete
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"]