SakibRumu
Create Dockerfile
e897935 verified
raw
history blame
454 Bytes
FROM python:3.10-slim
# Install system dependencies
RUN apt-get update && apt-get install -y \
tesseract-ocr \
tesseract-ocr-ben \
libglib2.0-0 libsm6 libxrender1 libxext6 \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Set work directory
WORKDIR /app
# Copy files
COPY requirements.txt .
COPY app.py .
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Run the app
CMD ["python", "app.py"]