Skip to content

Commit bb94bc6

Browse files
Updated docker file to use db utils
1 parent 2c475cc commit bb94bc6

File tree

4 files changed

+2
-2
lines changed

4 files changed

+2
-2
lines changed

AzureFunctions/km-charts-function/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ ENV AzureWebJobsScriptRoot=/home/site/wwwroot \
1212
COPY requirements.txt /
1313
RUN pip install -r /requirements.txt
1414

15+
COPY ../dbutils /home/site/wwwroot/dbutils
1516
COPY . /home/site/wwwroot

AzureFunctions/km-charts-function/function_app.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
app = func.FunctionApp(http_auth_level=func.AuthLevel.ANONYMOUS)
1111

12-
1312
# add post methods - filters will come in the body (request.body), if body is not empty, update the where clause in the query
1413
@app.route(route="get_metrics", methods=["GET","POST"], auth_level=func.AuthLevel.ANONYMOUS)
1514
def get_metrics(req: func.HttpRequest) -> func.HttpResponse:

AzureFunctions/km-rag-function/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ ENV AzureWebJobsScriptRoot=/home/site/wwwroot \
1212
COPY requirements.txt /
1313
RUN pip install -r /requirements.txt
1414

15+
COPY ../dbutils /home/site/wwwroot/dbutils
1516
COPY . /home/site/wwwroot

AzureFunctions/km-rag-function/function_app.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import azure.functions as func
2-
import logging
32
import openai
43
from azurefunctions.extensions.http.fastapi import Request, StreamingResponse
54
import asyncio

0 commit comments

Comments
 (0)