FROM public.ecr.aws/lambda/python:3.8

COPY requirements.txt .

RUN pip install --upgrade pip && \
    pip install setuptools wheel && \
    pip install -r requirements.txt

COPY index.py config.py handler.py rules.py workstation_rules.py ./
COPY constants ./constants
COPY utils ./utils
COPY tests/unit/data ./data
COPY ddex_ingester_common ./ddex_ingester_common

CMD ["index.handler"]  
