Skip to content

Commit

Permalink
Use a custom environment that includes python requirements (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
luigiw authored Jun 11, 2024
1 parent 431b709 commit 7d69f94
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
6 changes: 4 additions & 2 deletions deployment/environment.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 3 additions & 0 deletions deployment/image_build_with_requirements/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM mcr.microsoft.com/azureml/promptflow/promptflow-runtime:latest
COPY ./requirements.txt .
RUN pip install -r requirements.txt
12 changes: 12 additions & 0 deletions deployment/image_build_with_requirements/requirements.txt
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 7d69f94

Please sign in to comment.