Skip to content

Commit bd7ef8c

Browse files
committed
Add Function Docker Image
1 parent a205783 commit bd7ef8c

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

code/function/.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
local.settings.json

code/function/Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# To enable ssh & remote debugging on app service change the base image to the one below
2+
# FROM mcr.microsoft.com/azure-functions/python:4-python3.7-appservice
3+
FROM mcr.microsoft.com/azure-functions/python:4-python3.11
4+
5+
ENV AzureWebJobsScriptRoot=/home/site/wwwroot \
6+
AzureFunctionsJobHost__Logging__Console__IsEnabled=true
7+
8+
COPY requirements.txt /
9+
RUN pip install -r /requirements.txt
10+
11+
COPY . /home/site/wwwroot

0 commit comments

Comments
 (0)