dschandra commited on
Commit
3a8f661
·
verified ·
1 Parent(s): 5e3c604

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +22 -0
Dockerfile ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Base image with Python
2
+ FROM python:3.10-slim
3
+
4
+ # Install system dependencies
5
+ RUN apt-get update && apt-get install -y \
6
+ portaudio19-dev \
7
+ && apt-get clean
8
+
9
+ # Set the working directory
10
+ WORKDIR /app
11
+
12
+ # Copy all files into the container
13
+ COPY . /app
14
+
15
+ # Install Python dependencies
16
+ RUN pip install --no-cache-dir -r requirements.txt
17
+
18
+ # Expose port for the app
19
+ EXPOSE 7860
20
+
21
+ # Command to run the app
22
+ CMD ["python", "app.py"]