Spaces:
Paused
Paused
| # Use a base Ubuntu image | |
| FROM ubuntu:22.04 | |
| # Install system dependencies and Python | |
| RUN apt-get update && \ | |
| apt-get install -y --no-install-recommends \ | |
| python3 \ | |
| python3-pip \ | |
| python3-dev \ | |
| git \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Set the working directory | |
| WORKDIR /app | |
| # Copy requirements.txt first to leverage Docker layer caching | |
| COPY requirements.txt . | |
| # Install Python dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy all files from the Hugging Face Space repository | |
| COPY . . | |
| # Command to run your script | |
| CMD ["python3", "cli.py"] |