txh17 commited on
Commit
e699b9d
·
verified ·
1 Parent(s): 1cb89ce

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +25 -0
Dockerfile ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9-slim-buster
2
+
3
+ # Install espeak-ng and other necessary packages
4
+ RUN apt-get update && apt-get install -y --no-install-recommends \
5
+ espeak-ng \
6
+ alsa-utils \
7
+ && rm -rf /var/lib/apt/lists/*
8
+
9
+ # Set working directory
10
+ WORKDIR /app
11
+
12
+ # Copy requirements file
13
+ COPY requirements.txt .
14
+
15
+ # Install Python dependencies
16
+ RUN pip install --no-cache-dir -r requirements.txt
17
+
18
+ # Copy your application files
19
+ COPY . .
20
+
21
+ # Expose port (Gradio default is 7860)
22
+ EXPOSE 7860
23
+
24
+ # Command to run your app
25
+ CMD ["python", "app.py"]