Model/model_data/simulation_system/Dockerfiles/Dockerfile.prediction.lambda
2023-08-31 17:39:32 +01:00

17 lines
511 B
Text

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