Team Ai
Apppublic

SurLink/Explainer

sourceHugging Faceupdated 2mo agoView on Hugging Face
0likes
Dockerfile24 linesDownload Raw Back to root
1# Use official Python image2FROM python:3.11-slim3 4# Set working directory5WORKDIR /app6 7# Copy requirements first (caches dependencies)8COPY requirements.txt .9 10# Install dependencies11RUN pip install --no-cache-dir -r requirements.txt12 13# Copy the rest of the app14COPY . .15 16# Expose port (HF Spaces or local)17EXPOSE 786018 19# Set environment variable for Uvicorn to run in production20ENV UVICORN_CMD="uvicorn app:app --host 0.0.0.0 --port 7860"21 22# Run the FastAPI app23CMD ["sh", "-c", "$UVICORN_CMD"]24