FROM amazon/aws-lambda-python:3.11

COPY requirements.txt requirements-dev.txt ./
RUN pip install --upgrade pip && \
    pip install -r requirements-dev.txt

COPY lint-and-test.sh docker-compose.yaml .flake8 setup.py ./
COPY auditlogger/ ./auditlogger
COPY tests/ ./tests
COPY sample.py ./

ENTRYPOINT [ "/var/task/lint-and-test.sh" ]
