ADITYA0205 commited on
Commit
7980559
1 Parent(s): aefc2f3

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +29 -0
Dockerfile ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use the official Python image as a base image
2
+ FROM python:3.10-slim
3
+
4
+ # Set the working directory in the container
5
+ WORKDIR /app
6
+
7
+ # Install system dependencies
8
+ RUN apt-get update && apt-get install -y \
9
+ libasound-dev \
10
+ portaudio19-dev \
11
+ libportaudio2 \
12
+ libportaudiocpp0 \
13
+ ffmpeg \
14
+ && rm -rf /var/lib/apt/lists/*
15
+
16
+ # Copy the requirements.txt file into the container at /app
17
+ COPY requirements.txt requirements.txt
18
+
19
+ # Install the dependencies
20
+ RUN pip install --no-cache-dir -r requirements.txt
21
+
22
+ # Copy the rest of the application code into the container at /app
23
+ COPY . .
24
+
25
+ # Expose port 8501 for Streamlit
26
+ EXPOSE 8501
27
+
28
+ # Run the application
29
+ CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]