FROM python:3.10 | |
WORKDIR /app | |
# Install poppler-utils needed for pdf2image | |
RUN apt-get update && apt-get install -y poppler-utils | |
# Install Python dependencies | |
COPY requirements.txt . | |
RUN pip install --no-cache-dir -r requirements.txt | |
# Copy application files | |
COPY . . | |
# Set environment variables | |
ENV PYTHONUNBUFFERED=1 | |
# Run the application | |
CMD ["python", "app.py"] | |