-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerFile
More file actions
24 lines (19 loc) · 920 Bytes
/
Copy pathDockerFile
File metadata and controls
24 lines (19 loc) · 920 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# To enable ssh & remote debugging on app service change the base image to the one below
# FROM mcr.microsoft.com/azure-functions/python:3.0-python3.8-appservice
FROM mcr.microsoft.com/azure-functions/python:3.0-python3.8
ENV AzureWebJobsScriptRoot=/home/site/wwwroot \
AzureFunctionsJobHost__Logging__Console__IsEnabled=true
ENV DEBIAN_FRONTEND=noninteractive
COPY requirements.txt /home/
RUN pip install -r /home/requirements.txt
RUN apt-get update && \
apt-get install -y gcc python-dev libkrb5-dev && \
apt-get install curl && \
curl -sL https://aka.ms/InstallAzureCLIDeb | bash && \
pip install pywinrm[kerberos] && \
apt install krb5-user -y && \
pip install pywinrm && \
pip install ansible && \
ansible-galaxy collection install azure.azcollection && \
pip install -r /home/.ansible/collections/ansible_collections/azure/azcollection/requirements-azure.txt
COPY . /home/site/wwwroot