CoolFace
Apppublic

AMD21/codefixerenv

sourceHugging Faceupdated 6mo agoView on Hugging Face
0likes
Dockerfile27 linesDownload Raw Back to root
1FROM python:3.11-slim2 3# Set working directory4WORKDIR /app5 6# Install system dependencies7RUN apt-get update && apt-get install -y --no-install-recommends \8    curl \9    && rm -rf /var/lib/apt/lists/*10 11# Copy and install Python dependencies first (layer caching)12COPY requirements.txt .13RUN pip install --no-cache-dir -r requirements.txt14 15# Copy project source16COPY . .17 18# Hugging Face Spaces uses port 786019EXPOSE 786020 21# Health check (waits 10s for startup before checking)22HEALTHCHECK --interval=30s --timeout=10s --start-period=10s --retries=3 \23    CMD curl -f http://localhost:7860/health || exit 124 25# Start the FastAPI server26CMD ["python", "server.py"]27