mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
14 lines
555 B
Text
14 lines
555 B
Text
FROM public.ecr.aws/lambda/python:3.10
|
|
|
|
# Install python packages
|
|
COPY ../requirements/training/training.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 ./training.py ${LAMBDA_TASK_ROOT}/simulation_system/training.py
|
|
COPY ./handlers/training_app.py ${LAMBDA_TASK_ROOT}/simulation_system/training_app.py
|
|
|
|
# Run off a lambda trigger
|
|
CMD [ "training_app.handler" ]
|