HMZaheer commited on
Commit
1e1a99e
·
verified ·
1 Parent(s): 7acb79c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +25 -0
Dockerfile CHANGED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use the official lightweight Python image
2
+ FROM python:3.10-slim
3
+
4
+ # Set working directory
5
+ WORKDIR /app
6
+
7
+ # Install system dependencies
8
+ RUN apt-get update && apt-get install -y \
9
+ libgl1 \
10
+ poppler-utils \
11
+ && rm -rf /var/lib/apt/lists/*
12
+
13
+ # Install pip dependencies
14
+ COPY requirements.txt .
15
+ RUN pip install --no-cache-dir -r requirements.txt
16
+
17
+ # Copy app files
18
+ COPY app.py .
19
+ COPY README.md .
20
+
21
+ # Expose port
22
+ EXPOSE 7860
23
+
24
+ # Run the app
25
+ CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]