FROM python:3.11.9-slim # Set the working directory in the container WORKDIR /app # Install system dependencies (optional, for resource limiting) RUN apt-get update && apt-get install -y procps && rm -rf /var/lib/apt/lists/* # Copy requirements first to leverage Docker cache COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy the rest of your ErasLang engine COPY . . # Hugging Face Spaces runs on port 7860 by default ENV PORT=7860 EXPOSE 7860 # Start the FastAPI server CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]