Agrosure_OCR_verifier / Dockerfile
agentsay's picture
Update Dockerfile
ecffcc3 verified
raw
history blame contribute delete
677 Bytes
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"]