tesseract-ocr / Dockerfile
Witold Wydmański
fix: create `flagged` dir in dockerfile
c914e02
raw
history blame
325 Bytes
FROM python:3.10-slim
WORKDIR /code
# Install tesseract
RUN apt-get update && apt-get install -y tesseract-ocr
# Install python dependencies
COPY requirements.txt .
RUN pip install -r requirements.txt
# Copy the source code
COPY app.py .
RUN mkdir -p flagged
RUN chmod 777 flagged
# Run the app
CMD ["python", "app.py"]