Spaces:
Runtime error
Runtime error
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"] |