Nick021402 commited on
Commit
d798d59
·
verified ·
1 Parent(s): d67f8cb

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +27 -0
Dockerfile ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9-slim
2
+
3
+ # Install system dependencies
4
+ RUN apt-get update && apt-get install -y \
5
+ ffmpeg \
6
+ git \
7
+ && rm -rf /var/lib/apt/lists/*
8
+
9
+ # Set working directory
10
+ WORKDIR /app
11
+
12
+ # Copy requirements and install Python dependencies
13
+ COPY requirements.txt .
14
+ RUN pip install --no-cache-dir -r requirements.txt
15
+
16
+ # Copy application code
17
+ COPY . .
18
+
19
+ # Expose port
20
+ EXPOSE 7860
21
+
22
+ # Set environment variables
23
+ ENV GRADIO_SERVER_NAME="0.0.0.0"
24
+ ENV GRADIO_SERVER_PORT=7860
25
+
26
+ # Run the application
27
+ CMD ["python", "app.py"]