rag-chatbot / Dockerfile
lydiaavin's picture
Add Dockerfile for HF deployment
39d2d3c
Raw History Blame Contribute Delete
514 Bytes
# Use official Python 3.10 slim image
FROM python:3.10-slim
# Set working directory inside container
WORKDIR /app
# Copy requirements.txt and install dependencies
COPY requirements.txt .
RUN pip install --upgrade pip && pip install -r requirements.txt
# Copy all the repo code into the container
COPY . .
# Expose Streamlit default port
EXPOSE 8501
# Command to run the Streamlit app
CMD ["streamlit", "run", "app/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0", "--server.headless=true"]