Guest User

Untitled

a guest
Oct 16th, 2020
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  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:3.0-python3.6-appservice
  3. FROM mcr.microsoft.com/azure-functions/python:3.0-python3.6
  4.  
  5. ENV AzureWebJobsScriptRoot=/home/site/wwwroot \
  6. AzureFunctionsJobHost__Logging__Console__IsEnabled=true
  7.  
  8. ENV PATH="/home/.local/bin:${PATH}"
  9.  
  10. #Install git, wget, sudo and more
  11. RUN apt-get update && apt-get install -y \
  12. python3-opencv ca-certificates python3-dev git wget sudo g++ gcc \
  13. cmake ninja-build && \
  14. rm -rf /var/lib/apt/lists/*
  15. RUN ln -sv /usr/bin/python3 /usr/bin/python
  16.  
  17. #Install "basic" requirments from the requirments.txt file
  18. COPY requirements.txt /
  19. RUN pip install --user -r /requirements.txt
  20.  
  21. #Install detectron2
  22. RUN git clone https://github.com/facebookresearch/detectron2.git
  23. RUN python -m pip install --user -e detectron2
  24.  
  25. COPY . /home/site/wwwroot
Add Comment
Please, Sign In to add comment