FROM python:3.11-slim ENV PYTHONUNBUFFERED=1 WORKDIR /app # Install dependencies COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy the Python script only COPY head.py . # Entrypoint CMD ["python3", "head.py"]