rag / Dockerfile
abdulahad086's picture
Upload Dockerfile with huggingface_hub
65f8514 verified
Raw
History Blame Contribute Delete
523 Bytes
FROM python:3.12-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
build-essential \
curl \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements and install
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the application
COPY . .
# Expose the port (FastAPI default)
EXPOSE 7860
# Command to run the app (Note: Hugging Face uses 7860 by default)
CMD ["uvicorn", "backend.main:app", "--host", "0.0.0.0", "--port", "7860"]