comvis_backend / Dockerfile
thomatomb's picture
Deploy Pneumonia Detection API
7a9582d
Raw
History Blame Contribute Delete
436 Bytes
FROM python:3.11-slim
WORKDIR /app
# Install minimal system dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
# Install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY . .
# HF Spaces uses port 7860 by default
EXPOSE 7860
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]