FROM python:3.11-slim WORKDIR /app RUN apt-get update && apt-get install -y gcc python3-dev && rm -rf /var/lib/apt/lists/* RUN pip install --no-cache-dir fastapi uvicorn psutil RPi.GPIO COPY main.py . ENV LUNA_API_TOKEN="luna-secret-2026" # We'll need to mount the host's script if we want to run blinking from the container, # but for now let's just expose the stats. # Alternatively, we could install what we need. CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]