FROM python:3.11-slim
# Install dependencies
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
# Install pre-commit
RUN pip install pre-commit
# Set the working directory
WORKDIR /app
# Copy your project files (optional, if needed for hooks)
COPY . .
# Set the entrypoint to run pre-commit
ENTRYPOINT ["pre-commit"]