Model/model_data/simulation_system/Dockerfiles/Dockerfile.prediction.lambda
2023-08-29 19:35:18 +01:00

14 lines
575 B
Text

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" ]