-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
20 lines (16 loc) · 890 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# To enable ssh & remote debugging on app service change the base image to the one below
# FROM mcr.microsoft.com/azure-functions/python:4-python3.8-appservice
FROM mcr.microsoft.com/azure-functions/python:4-python3.8-appservice
ENV AzureFunctionsJobHost__Logging__Console__IsEnabled=true \
PYTHON_ISOLATE_WORKER_DEPENDENCIES=1
RUN apt-get install -y git && rm -rf /var/lib/apt/lists/*
COPY requirements.txt /
RUN apt-get update && apt-get install -y \
gcc g++ libeccodes-dev libgeos-dev pkg-config libhdf5-103 libhdf5-dev vim-tiny && \
pip install --upgrade pip setuptools wheel && \
rm -rf /var/lib/apt/lists/* /usr/share/doc /usr/share/man && \
apt-get clean && \
pip --no-cache-dir install --prefer-binary -r requirements.txt
COPY icenet-0.2.6a1-py2.py3-none-any.whl /
RUN pip install --no-deps /icenet-0.2.6a1-py2.py3-none-any.whl
COPY . /home/site/wwwroot