Peeble commited on
Commit
c077991
Β·
verified Β·
1 Parent(s): c5e4228

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +18 -0
Dockerfile ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use an official Python runtime as the base image
2
+ FROM python:3.9
3
+
4
+ # Set the working directory in the container
5
+ WORKDIR /app
6
+
7
+ # Copy the current directory contents into the container
8
+ COPY . /app
9
+
10
+ # Install dependencies
11
+ RUN apt-get update && apt-get install -y ffmpeg
12
+ RUN pip install --no-cache-dir torch diffusers transformers scipy gradio ffmpeg-python
13
+
14
+ # Expose port 7860 for Gradio
15
+ EXPOSE 7860
16
+
17
+ # Command to run the Gradio app
18
+ CMD ["python", "app.py"]