CourseRecommendation / Dockerfile
shreyankisiri's picture
Update Dockerfile
6bf4fee verified
raw
history blame contribute delete
459 Bytes
# Base image with Python
FROM python:3.10
# Set working directory
WORKDIR /app
# Copy requirements
COPY requirements.txt .
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Create and persist ChromaDB storage
RUN mkdir -p /app/chroma_db
VOLUME ["/app/chroma_db"]
# Copy application code
COPY . .
# Expose the correct port
EXPOSE 7860
# Command to run FastAPI
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]