triflix commited on
Commit
c4ea280
·
verified ·
1 Parent(s): bfa8520

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +26 -0
Dockerfile ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ## Dockerfile for Roop-Unleashed
2
+ # This Dockerfile clones the repository, installs dependencies and runs the app on port 7860
3
+
4
+ FROM python:3.10-slim
5
+
6
+ # Set working directory
7
+ WORKDIR /app
8
+
9
+ # Install system packages: git (to clone), ffmpeg (if required), and cleanup
10
+ RUN apt-get update \
11
+ && apt-get install -y --no-install-recommends \
12
+ git \
13
+ ffmpeg \
14
+ && rm -rf /var/lib/apt/lists/*
15
+
16
+ # Clone the roop-unleashed repository into the container
17
+ RUN git clone https://github.com/zullum/roop-unleashed.git .
18
+
19
+ # Install Python dependencies
20
+ RUN pip install --no-cache-dir -r requirements.txt
21
+
22
+ # Expose the application port
23
+ EXPOSE 7860
24
+
25
+ # Default command to run the application
26
+ CMD ["python", "run.py"]