diff --git a/deployment/environment.yaml b/deployment/environment.yaml index cb5a308f..4d011878 100644 --- a/deployment/environment.yaml +++ b/deployment/environment.yaml @@ -1,6 +1,8 @@ $schema: https://azuremlschemas.azureedge.net/latest/environment.schema.json -image: mcr.microsoft.com/azureml/promptflow/promptflow-runtime:latest - # inference config is used to build a serving container for online deployments +build: + path: image_build_with_requirements + dockerfile_path: Dockerfile +# inference config is used to build a serving container for online deployments inference_config: liveness_route: path: /health diff --git a/deployment/image_build_with_requirements/Dockerfile b/deployment/image_build_with_requirements/Dockerfile new file mode 100644 index 00000000..942c8c97 --- /dev/null +++ b/deployment/image_build_with_requirements/Dockerfile @@ -0,0 +1,3 @@ +FROM mcr.microsoft.com/azureml/promptflow/promptflow-runtime:latest +COPY ./requirements.txt . +RUN pip install -r requirements.txt \ No newline at end of file diff --git a/deployment/image_build_with_requirements/requirements.txt b/deployment/image_build_with_requirements/requirements.txt new file mode 100644 index 00000000..69a21e8c --- /dev/null +++ b/deployment/image_build_with_requirements/requirements.txt @@ -0,0 +1,12 @@ +azure-cosmos +azure-ai-ml +azure-ai-resources +azure-search-documents==11.4.0 +promptflow==1.11.0 +promptflow[azure]==1.11.0 +promptflow-tools==1.4.0 +azure-identity==1.16.0 +python-dotenv==1.0.1 +jsonlines +promptflow.evals +nbconvert \ No newline at end of file