File size: 654 Bytes
f0ca454
 
 
 
 
 
 
 
 
 
 
 
 
 
ac3e73a
8fa9f74
 
 
 
 
 
f0ca454
 
 
 
8fa9f74
 
 
f0ca454
 
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

WORKDIR /app

# Install system dependencies
RUN apt-get update && apt-get install -y \

    poppler-utils \
    && rm -rf /var/lib/apt/lists/*

# Copy requirements and install
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# Copy application files
COPY app.py .

# Copy static folder with all contents
COPY static/ ./static/

# Debug: List files to verify copy
RUN ls -la && ls -la static/ && ls -la static/assets/ || true

# Expose port 7860 (Hugging Face default)
EXPOSE 7860

# Set environment variable
ENV FLASK_ENV=production

# Run Flask app
CMD ["python", "app.py"]