Verimed-AI / Dockerfile
Arnavdarange's picture
Update Dockerfile to port 7860 for HF Spaces
a8be4d0
Raw
History Blame Contribute Delete
659 Bytes
FROM python:3.11-slim
# Install system libraries needed by OpenCV / EasyOCR / PyTorch
RUN apt-get update && apt-get install -y --no-install-recommends \
libgl1 \
libglib2.0-0 \
libgomp1 \
build-essential \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Copy requirements and install
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application source code
COPY . .
# Run ingest to ensure ChromaDB vector store is populated at build time
RUN python ingest.py
EXPOSE 7860
ENV PORT=7860
ENV PYTHONUNBUFFERED=1
CMD ["gunicorn", "app:app", "--bind", "0.0.0.0:7860", "--workers", "2", "--timeout", "120"]