AI-Legal-Assistant / Dockerfile
tejash300's picture
Create Dockerfile
8bd6f23 verified
raw
history blame
790 Bytes
# βœ… Use Python 3.9 as the base image
FROM python:3.9
# βœ… Set the working directory
WORKDIR /app
# βœ… Install system dependencies
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 manually
RUN pip install --no-cache-dir -r requirements.txt
RUN pip install moviepy imageio[ffmpeg] # βœ… Manually install moviepy & dependencies
# βœ… Ensure MoviePy has access to FFmpeg
ENV IMAGEIO_FFMPEG_EXE=/usr/bin/ffmpeg
# βœ… 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