From 4ff56b7fa150181476dea1bdc8c39b2548dcea29 Mon Sep 17 00:00:00 2001 From: Anton Rogozin Date: Mon, 29 Jul 2024 21:55:58 +0500 Subject: [PATCH] add dockerfile (#831) --- Dockerfile | 18 ++++++++++++++++++ README.md | 1 + 2 files changed, 19 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..1fef50711 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,18 @@ +FROM python:3.11 + +# making app folder +WORKDIR /app + +# copying files +COPY . . + +# installing requirements +RUN apt-get update +RUN apt-get install ffmpeg -y +RUN pip install --upgrade pip +RUN pip install -r ./requirements.txt + +# launching gradio app +ENV GRADIO_SERVER_NAME="0.0.0.0" +EXPOSE 7860 +ENTRYPOINT python ./run.py \ No newline at end of file diff --git a/README.md b/README.md index 792c8cc92..9bf4d32a5 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,7 @@ Please refer to the [wiki](https://github.com/C0untFloyd/roop-unleashed/wiki). - Windows: run the `windows_run.bat` from the Installer. - Linux: `python run.py` +- Dockerfile - `docker build -t roop-unleashed .` Open In Colab