File size: 797 Bytes
8e5b3fc
 
 
 
 
 
1e1a99e
 
8e5b3fc
 
 
1e1a99e
8e5b3fc
1e1a99e
33f3abf
 
8e5b3fc
 
 
1e1a99e
 
8e5b3fc
 
1e1a99e
8e5b3fc
 
1e1a99e
8e5b3fc
 
 
 
 
 
 
1e1a99e
8e5b3fc
 
33f3abf
8e5b3fc
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41

---

### 📌 Dockerfile
```dockerfile
# Use official lightweight Python image
FROM python:3.10-slim

# Set environment variables
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1

# Install system dependencies
RUN apt-get update && apt-get install -y \
    build-essential \
    libglib2.0-0 \
    libsm6 \
    libxext6 \
    libxrender-dev \
    && rm -rf /var/lib/apt/lists/*

# Set working directory
WORKDIR /app

# Copy requirements first (for caching)
COPY requirements.txt /app/

# Install Python dependencies
RUN pip install --upgrade pip && \
    pip install -r requirements.txt && \
    pip install --upgrade streamlit

# Copy app files
COPY . /app/

# Expose port
EXPOSE 7860

# Run Streamlit app
CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]