telecom / Dockerfile
Hamza4100's picture
Update Dockerfile
67040fa verified
raw
history blame contribute delete
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"]