File size: 640 Bytes
67817c7
55c4146
d88763c
55c4146
67817c7
 
 
 
 
 
d88763c
66783c6
55c4146
8b1b279
55c4146
67817c7
d88763c
55c4146
67817c7
 
d88763c
67817c7
 
d88763c
66783c6
 
d88763c
66783c6
8b1b279
8729ebe
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
FROM python:3.10-slim

# Install system dependencies and tesseract
RUN apt-get update && apt-get install -y \
    build-essential \
    gcc \
    libffi-dev \
    libpq-dev \
    libssl-dev \
    curl \
    tesseract-ocr \
    && apt-get clean && rm -rf /var/lib/apt/lists/*

# Set working directory
WORKDIR /app

# Copy dependencies and install
COPY requirements.txt .
RUN pip install --upgrade pip && pip install -r requirements.txt

# Copy all app code
COPY . .

# Expose Hugging Face-compatible port
EXPOSE 7860

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