Spaces:
Sleeping
Sleeping
File size: 677 Bytes
1b9ff3c 81410cc 1b9ff3c ecffcc3 1b9ff3c 19cf1d8 a5f1621 1b9ff3c 122b223 f2e8331 1b9ff3c cc426df 1b9ff3c 81410cc | 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 | FROM python:3.9-slim
# Install system dependencies
RUN apt-get update && apt-get install -y \
tesseract-ocr \
poppler-utils \
ghostscript \
libsm6 \
libxext6 \
libgl1 \
&& rm -rf /var/lib/apt/lists/*
# Set working directory
WORKDIR /app
COPY list-of-products.pdf /app/list-of-products.pdf
# Copy requirements and install
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
RUN pip install python-multipart
COPY list-of-products.pdf .
# Copy application code
COPY app.py .
RUN chmod -R 777 /app
# Expose port
EXPOSE 7860
# Command to run the application
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|