CoolFace
Apppublic

programmerguy69/brain-tumor-detector

sourceHugging Faceupdated 5mo agoView on Hugging Face
0likes
Dockerfile23 linesDownload Raw Back to root
1FROM python:3.11-slim2 3# Set working directory4WORKDIR /app5 6# Install system dependencies (needed for opencv)7RUN apt-get update && apt-get install -y libgl1 libglib2.0-0 && rm -rf /var/lib/apt/lists/*8 9# Copy requirements and install python dependencies10COPY requirements.txt .11# Add matplotlib for visualization12RUN pip install --no-cache-dir --upgrade pip && \13    pip install --no-cache-dir -r requirements.txt matplotlib14 15# Copy your application files16COPY . .17 18# Expose the default port (HuggingFace spaces runs on port 7860)19EXPOSE 786020 21# Run the application22CMD ["flask", "--app", "app-debug.py", "run", "--host=0.0.0.0", "--port=7860"]23