abdulllah01 commited on
Commit
0b514e2
1 Parent(s): 19e8e74

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +32 -0
Dockerfile ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9-slim
2
+
3
+ WORKDIR /app
4
+
5
+ # Install dependencies
6
+ RUN apt-get update && apt-get install -y \
7
+ git \
8
+ git-lfs \
9
+ ffmpeg \
10
+ libsm6 \
11
+ libxext6 \
12
+ cmake \
13
+ rsync \
14
+ libgl1-mesa-glx
15
+
16
+ # Copy requirements.txt
17
+ COPY requirements.txt .
18
+
19
+ # Install Python dependencies
20
+ RUN pip install --no-cache-dir -r requirements.txt
21
+
22
+ # Copy app files
23
+ COPY . .
24
+
25
+ # Set environment variable for Streamlit
26
+ ENV STREAMLIT_SERVER_PORT 7860
27
+
28
+ # Expose port
29
+ EXPOSE 7860
30
+
31
+ # Run the Streamlit app
32
+ CMD ["streamlit", "run", "app.py"]