pdf-ocr / Dockerfile
badalsahani's picture
Update Dockerfile
3b36f65
raw
history blame contribute delete
437 Bytes
FROM python:alpine
RUN mkdir -p /code
RUN chmod 777 /code
WORKDIR /code
COPY ./requirements.txt /code/requirements.txt
RUN apk --no-cache add poppler poppler-utils
RUN apk --no-cache add tesseract-ocr
RUN apk --no-cache add icu-data-full
RUN pip install --upgrade pip
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
COPY ./app /code/app
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]