smartsaduvu / Dockerfile
pavan1221's picture
Update Dockerfile
d535a5b verified
raw
history blame contribute delete
496 Bytes
FROM python:3.10-slim
RUN apt-get update && apt-get install -y \
tesseract-ocr \
tesseract-ocr-eng \
libgl1 \
libglib2.0-0 \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
RUN python -c "from sentence_transformers import SentenceTransformer; SentenceTransformer('all-MiniLM-L6-v2')"
COPY app/ .
EXPOSE 7860
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]