# Base image set karein jo Python 3.10 par hai | |
FROM python:3.10 | |
# Working directory set karein | |
WORKDIR /app | |
# Local files ko container mein copy karein | |
COPY . . | |
# Linux packages install karein | |
RUN apt-get update && \ | |
apt-get install -y ffmpeg | |
# Python dependencies install karein | |
RUN pip install --no-cache-dir -r requirements.txt && \ | |
pip install PyAudio==0.2.14 | |
# Server aur Streamlit app run karne ke liye commands | |
CMD ["bash", "-c", "python3 server.py --ip '0.0.0.0' --port 60808 & API_URL=http://0.0.0.0:60808/chat streamlit run webui/omni_streamlit.py --server.port=8501"] | |