Download Dockerfile from Hamza4100/telecom: direct link, hf CLI and curl.
- Browser
- Download file 689 Bytes
-
https://huggingface.co/spaces/Hamza4100/telecom/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Hamza4100/telecom/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Hamza4100/telecom/resolve/main/Dockerfile
689 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| build-essential \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Install Python dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy application files | |
| #all csv here | |
| COPY app.py . | |
| COPY merged_subscriber_data.csv . | |
| COPY international_calls.csv . | |
| COPY golden_table_clustered.csv . | |
| # Create data directory | |
| RUN mkdir -p /app/data | |
| # Expose port (HF Spaces uses 7860) | |
| EXPOSE 7860 | |
| # Set environment variables | |
| ENV PYTHONUNBUFFERED=1 | |
| # Run the application | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |