vachnamrut_api / Dockerfile
nk233's picture
Update Dockerfile
669b4eb verified
raw
history blame contribute delete
475 Bytes
FROM python:3.11-slim
# System deps needed by torch / sentence-transformers / faiss
RUN apt-get update && apt-get install -y --no-install-recommends \
libgomp1 libstdc++6 git-lfs \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt .
# Avoid cached wheels that may mismatch; ensure CPU wheels
RUN pip install --no-cache-dir -r requirements.txt
COPY app.py .
ENV PORT=7860
EXPOSE 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]