# Use a lightweight Python base image FROM python:3.10-slim # Set environment variables ENV PYTHONDONTWRITEBYTECODE=1 ENV PYTHONUNBUFFERED=1 # Create working directory WORKDIR /app # Install system dependencies (optional but often needed for FastAPI/uvicorn) RUN apt-get update && apt-get install -y --no-install-recommends \ curl \ && rm -rf /var/lib/apt/lists/* # Download requirements.txt from Hugging Face RUN curl -o requirements.txt https://huggingface.co/datasets/rkihacker/HellFire/raw/main/requirements.txt # Install Python dependencies RUN pip install --no-cache-dir -r requirements.txt # Download the main FastAPI app RUN curl -o main.py https://huggingface.co/datasets/rkihacker/HellFire/raw/main/main.py # Expose FastAPI default port EXPOSE 8000 # Command to run the FastAPI app with uvicorn CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]