AI-Legal-Assistant / Dockerfile
tejash300's picture
Update Dockerfile
350cd25 verified
raw
history blame contribute delete
643 Bytes
# βœ… Use Python 3.9 as the base image
FROM python:3.9
# βœ… Set the working directory
WORKDIR /app
# βœ… Install system dependencies (FFmpeg for audio processing)
RUN apt-get update && apt-get install -y \
ffmpeg \
libgl1-mesa-glx \
libglib2.0-0 \
&& rm -rf /var/lib/apt/lists/*
# βœ… Copy project files
COPY . .
# βœ… Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# βœ… Expose required ports (FastAPI & Streamlit)
EXPOSE 7860 8501
# βœ… Run both FastAPI and Streamlit
CMD uvicorn app:app --host 0.0.0.0 --port 7860 & streamlit run app_ui.py --server.port 8501 --server.address 0.0.0.0