# Use Python slim image as base FROM python:3.10-slim AS base # Set up a directory for the application code WORKDIR /app # Copy only the requirements file initially for better caching COPY requirements.txt . # Install Workflow SDK and other dependencies RUN pip install --no-cache-dir -r requirements.txt # Copy the rest of the application code COPY . . # Set entrypoint for the worker ENTRYPOINT ["python", "/app/block_wrapper.py"]