# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".
FROM public.ecr.aws/amazonlinux/amazonlinux:2

RUN curl -sL https://rpm.nodesource.com/setup_14.x | sudo bash - \
 && yum install -y nodejs \
 && npm install --no-save aws-sdk@^2.957.0 \
 && yum clean all \
 && rm -rf /var/cache/yum

COPY ./entrypoint.sh /bundle/entrypoint.sh
COPY ./index.js      /bundle/index.js
COPY ./Dockerfile    /bundle/Dockerfile

ENTRYPOINT ["/bin/bash", "/bundle/entrypoint.sh"]