File size: 689 Bytes
67040fa ba0a62d faaab91 ba0a62d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | 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"]
|