| FROM python:3.10 | |
| WORKDIR /app | |
| # Copy requirements first for better caching | |
| COPY requirements.txt . | |
| # Install system dependencies (FIXED - using libgl1 instead of libgl1-mesa-glx) | |
| RUN apt-get update && apt-get install -y \ | |
| git \ | |
| git-lfs \ | |
| ffmpeg \ | |
| libsm6 \ | |
| libxext6 \ | |
| cmake \ | |
| rsync \ | |
| libgl1 \ | |
| && rm -rf /var/lib/apt/lists/* \ | |
| && git lfs install | |
| # Install Python dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Install additional required packages that might not be in requirements.txt | |
| RUN pip install --no-cache-dir \ | |
| streamlit==1.29.0 \ | |
| pmdarima \ | |
| plotly \ | |
| torch \ | |
| transformers | |
| # Copy the rest of your application | |
| COPY . . | |
| # Expose port | |
| EXPOSE 7860 | |
| # Command to run your application | |
| CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"] |