Spaces:
Sleeping
Sleeping
FROM python:3.10-slim | |
# Set working directory | |
WORKDIR /app | |
# Copy all project files | |
COPY . . | |
# Install Python dependencies system-wide | |
RUN pip install --upgrade pip && pip install -r requirement.txt | |
# Create ChromaDB persistence directory | |
RUN mkdir -p /app/data_ingetion/chroma_storage | |
# Expose FastAPI and Streamlit ports | |
EXPOSE 8000 | |
EXPOSE 8501 | |
# Run FastAPI then Streamlit | |
CMD uvicorn main_api:app --host 0.0.0.0 --port 8000 & \ | |
streamlit run streamlit_app/app.py --server.port 8501 | |