Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 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.6-appservice
- FROM mcr.microsoft.com/azure-functions/python:3.0-python3.6
- ENV AzureWebJobsScriptRoot=/home/site/wwwroot \
- AzureFunctionsJobHost__Logging__Console__IsEnabled=true
- ENV PATH="/home/.local/bin:${PATH}"
- #Install git, wget, sudo and more
- RUN apt-get update && apt-get install -y \
- python3-opencv ca-certificates python3-dev git wget sudo g++ gcc \
- cmake ninja-build && \
- rm -rf /var/lib/apt/lists/*
- RUN ln -sv /usr/bin/python3 /usr/bin/python
- #Install "basic" requirments from the requirments.txt file
- COPY requirements.txt /
- RUN pip install --user -r /requirements.txt
- #Install detectron2
- RUN git clone https://github.com/facebookresearch/detectron2.git
- RUN python -m pip install --user -e detectron2
- COPY . /home/site/wwwroot
Add Comment
Please, Sign In to add comment