Omnia-cy's picture
Create Dockerfile
95a4fee verified
raw
history blame contribute delete
335 Bytes
FROM python:3.10
WORKDIR /code
# system dependencies (OCR)
RUN apt-get update && apt-get install -y \
tesseract-ocr \
libgl1
# install python deps
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# copy app
COPY app.py .
# run API
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]