FROM public.ecr.aws/lambda/python:3.10 # Install python packages COPY ../requirements/predictions/predictions.txt requirements.txt RUN pip install --no-cache-dir -r requirements.txt # Copy the project code to user home directory COPY ./core ${LAMBDA_TASK_ROOT}/simulation_system/core COPY ./MLModel ${LAMBDA_TASK_ROOT}/simulation_system/MLModel COPY ./predictions.py ${LAMBDA_TASK_ROOT}/simulation_system/predictions.py COPY ./handlers/predictions_app.py ${LAMBDA_TASK_ROOT}/simulation_system/predictions_app.py # Run off a lambda trigger CMD [ "prediction_app.handler" ]