FROM python:3.12-slim

WORKDIR /app

# Install requirements in a first layer
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# Copy all files in a second layer
COPY . .

# Run the main script
CMD ["python", "slack_pipeline.py"]