moonsunkey/siamese-api
0
1FROM python:3.11-slim2 3WORKDIR /app4 5# Install system dependencies6RUN apt-get update && apt-get install -y \7 build-essential \8 && rm -rf /var/lib/apt/lists/*9 10# Copy requirements and install Python packages11COPY requirements.txt .12RUN pip install --no-cache-dir -r requirements.txt13 14# Copy application code15COPY app.py .16 17# Expose port 7860 (Hugging Face Spaces default)18EXPOSE 786019 20# Run the FastAPI application21CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]