ocr / Dockerfile
Rhama Damarwijaya
Create Dockerfile
cf5530e verified
raw
history blame contribute delete
372 Bytes
FROM python
RUN apt-get update && \
apt-get install -y \
ffmpeg \
tesseract-ocr \
imagemagick \
webp && \
apt-get upgrade -y && \
rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt .
RUN pip install -r requirements.txt
COPY . .
EXPOSE 7860
RUN chmod -R 777 /app
CMD ["gunicorn", "-w", "4", "-k", "gevent", "api:app", "-b", "0.0.0.0:7860"]