Spaces:
Running
Running
| FROM python:3.10 | |
| # Update the package list and install zstd | |
| RUN apt-get update && apt-get install -y zstd | |
| # Install Ollama | |
| RUN curl -fsSL https://ollama.com/install.sh | sh | |
| # Install Python requirements | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy everything | |
| COPY . . | |
| # Make the start script executable | |
| RUN chmod +x start.sh | |
| # Expose port | |
| EXPOSE 7860 | |
| # Run the startup script | |
| CMD ["./start.sh"] |