Tanusree88 commited on
Commit
edc5644
1 Parent(s): db7f83c

Update Docker

Browse files
Files changed (1) hide show
  1. Docker +31 -0
Docker CHANGED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use the official Python 3.10 image
2
+ FROM python:3.10
3
+
4
+ # Set the working directory in the container
5
+ WORKDIR /app
6
+
7
+ # Install system dependencies (if needed, you can add more here)
8
+ RUN apt-get update && apt-get install -y \
9
+ git \
10
+ git-lfs \
11
+ ffmpeg \
12
+ libsm6 \
13
+ libxext6 \
14
+ cmake \
15
+ rsync \
16
+ libgl1-mesa-glx
17
+
18
+ # Copy requirements.txt to the working directory
19
+ COPY requirements.txt .
20
+
21
+ # Upgrade pip to avoid any compatibility issues
22
+ RUN pip install --upgrade pip
23
+
24
+ # Install the required Python packages
25
+ RUN pip install -r requirements.txt
26
+
27
+ # Copy the rest of the application code to the working directory
28
+ COPY . .
29
+
30
+ # Command to run the app with Streamlit
31
+ CMD ["streamlit", "run", "app.py", "--server.port=8080", "--server.address=0.0.0.0"]