CoolFace
Apppublic

RACHIDZIDANI/Spam_Ham_classification

sourceHugging Faceupdated 2y agoView on Hugging Face
0likes
Dockerfile21 linesDownload Raw Back to root
1FROM python:3.11-slim2 3WORKDIR /code4 5# Install system dependencies6RUN apt-get update && apt-get install -y \7    build-essential \8    && rm -rf /var/lib/apt/lists/*9 10# Install Python packages11RUN pip install --no-cache-dir flask gunicorn numpy pandas scikit-learn12 13# Copy application files14COPY . .15 16# Make sure the Models directory exists17RUN mkdir -p Models18 19# Run the application20CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"]21