Spaces:
Sleeping
Sleeping
FROM python:3.10-slim | |
# Set environment variables to prevent issues in Docker | |
ENV PYTHONUNBUFFERED=1 \ | |
PYTHONDONTWRITEBYTECODE=1 \ | |
PIP_NO_CACHE_DIR=1 \ | |
PIP_DISABLE_PIP_VERSION_CHECK=1 | |
# Working directory | |
WORKDIR /app | |
# Install git & build essentials (for ChromaDB) | |
RUN apt-get update && apt-get install -y build-essential git && apt-get clean && rm -rf /var/lib/apt/lists/* | |
# Install Python dependencies | |
COPY requirements.txt . | |
RUN pip install -r requirements.txt | |
# Copy project files | |
COPY . . | |
# Expose Streamlit port | |
EXPOSE 8501 | |
# Start Streamlit app | |
CMD ["streamlit", "run", "app.py", "--server.port", "8501", "--server.address", "0.0.0.0"] | |