mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
22 lines
763 B
Text
22 lines
763 B
Text
FROM public.ecr.aws/lambda/python:3.10
|
|
|
|
# Set the working directory
|
|
WORKDIR ${LAMBDA_TASK_ROOT}/simulation_system
|
|
|
|
# Install necessary build tools - required to test locally
|
|
RUN yum install -y gcc python3-devel
|
|
|
|
# Install python packages
|
|
COPY requirements/predictions/predictions.txt ./simulation_system/requirements.txt
|
|
COPY requirements/predictions/predictions-dev.txt ./simulation_system/requirements.txt
|
|
RUN pip install --no-cache-dir -r ./simulation_system/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
|
|
COPY ./__init__.py ./__init__.py
|
|
|
|
# Run off a lambda trigger
|
|
CMD [ "predictions_app.handler" ]
|