MoJaff commited on
Commit
22d2222
·
verified ·
1 Parent(s): 2ac0a2c

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +23 -0
Dockerfile ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use the official Python image as the base image
2
+ FROM python:3.9-slim
3
+
4
+ # Install system dependencies (espeak-ng for text-to-speech)
5
+ RUN apt-get update && apt-get install -y \
6
+ espeak-ng \
7
+ && rm -rf /var/lib/apt/lists/*
8
+
9
+ # Copy the requirements file into the container
10
+ COPY requirements.txt /tmp/requirements.txt
11
+
12
+ # Install Python dependencies
13
+ RUN pip install --no-cache-dir -r /tmp/requirements.txt
14
+
15
+ # Copy the rest of the application code
16
+ COPY . /app
17
+ WORKDIR /app
18
+
19
+ # Expose the port Gradio runs on
20
+ EXPOSE 7860
21
+
22
+ # Run the Gradio app
23
+ CMD ["python", "app.py"]