rag_quote_app / Dockerfile
Satyam0077's picture
Update Dockerfile
d9d31be verified
raw
history blame contribute delete
892 Bytes
# Use official Python slim image
FROM python:3.9-slim
# Set working directory inside container
WORKDIR /app
# Install system dependencies (build essentials, git, curl, etc.)
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
git \
curl \
&& rm -rf /var/lib/apt/lists/*
# Copy only requirements.txt first for better caching
COPY requirements.txt ./
# Upgrade pip to latest to avoid some install issues
RUN pip install --upgrade pip
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of your app files after dependencies installed
COPY . .
# Expose the port (optional but good practice)
EXPOSE 7860
# Run Streamlit app on 0.0.0.0 to be accessible externally, port 7860
CMD ["streamlit", "run", "streamlit_app.py", "--server.port=7860", "--server.address=0.0.0.0", "--server.headless=true"]