SSL-Former / Dockerfile
saifulislamoni's picture
Deploy: Brain Tumor Classifier with GradCAM and PDF reports - MoCo SSL + Swin-Transformer
c703689
raw
history blame contribute delete
468 Bytes
FROM python:3.10-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
libopencv-dev \
python3-opencv \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements and install
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application files
COPY app.py .
COPY Model.pt .
COPY templates/ templates/
# Expose port (HF Spaces uses 7860)
EXPOSE 7860
# Run Flask app
CMD ["python", "app.py"]