autism-screening / Dockerfile
harshith1411's picture
Update Dockerfile
8315a05 verified
raw
history blame contribute delete
709 Bytes
# ✅ Use stable Python version
FROM python:3.10-slim
# Set working directory
WORKDIR /app
# Install system dependencies (important for shap & matplotlib)
RUN apt-get update && apt-get install -y \
build-essential \
curl \
git \
libgl1 \
libglib2.0-0 \
&& rm -rf /var/lib/apt/lists/*
# Copy files
COPY requirements.txt .
COPY . .
# Upgrade pip (important)
RUN pip install --upgrade pip
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Expose port
EXPOSE 8501
# Health check
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health || exit 1
# Run app
CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]