Arclen/ucprojects-backend
0
1FROM python:3.11-slim2 3WORKDIR /app4 5# Install build dependencies for some Python packages6RUN apt-get update && apt-get install -y build-essential gcc git && rm -rf /var/lib/apt/lists/*7 8COPY requirements.txt ./9RUN pip install --no-cache-dir -U pip10RUN pip install --no-cache-dir -r requirements.txt11# Ensure python-multipart is present even if cache/stale requirements layer is reused12RUN pip install --no-cache-dir python-multipart13 14COPY . /app15 16# Use port 7860 which is commonly routed by hosting platforms like Hugging Face Spaces17EXPOSE 786018 19# Start the app on port 786020CMD ["uvicorn", "src.main:app", "--host", "0.0.0.0", "--port", "7860", "--loop", "asyncio", "--http", "h11"]21 