mirror of
https://github.com/Hestia-Homes/ML.git
synced 2026-06-08 11:17:25 +00:00
added environment variables to docker
This commit is contained in:
parent
6b96c084c2
commit
a6f9954125
1 changed files with 5 additions and 1 deletions
|
|
@ -4,6 +4,10 @@ FROM public.ecr.aws/lambda/python:3.10
|
|||
WORKDIR ${LAMBDA_TASK_ROOT}
|
||||
ENV PYTHONPATH "${PYTHONPATH}:${LAMBDA_TASK_ROOT}"
|
||||
|
||||
# Environment variables
|
||||
ARG RUNTIME_ENVIRONMENT
|
||||
ENV RUNTIME_ENVIRONMENT=${RUNTIME_ENVIRONMENT}
|
||||
|
||||
# Install necessary build tools - required to test locally
|
||||
RUN yum install -y gcc python3-devel
|
||||
|
||||
|
|
@ -16,6 +20,6 @@ COPY modules/ml-pipeline/src/pipeline ./pipeline
|
|||
# Copy the handler
|
||||
COPY deployment/handlers/prediction_app.py prediction_app.py
|
||||
# Get the model
|
||||
# RUN dev pull -r ${RUNTIME_ENVIRONMENT}
|
||||
# RUN dvc pull -r ${RUNTIME_ENVIRONMENT}
|
||||
|
||||
CMD [ "prediction_handler.handler" ]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue