-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
55 lines (39 loc) · 1.43 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
FROM python:3.7-buster
RUN mkdir --parents /home/ibf
ENV HOME /home/ibf
WORKDIR $HOME
RUN apt-get update && \
apt-get install -y python3-pip && \
ln -sfn /usr/bin/python3.6 /usr/bin/python && \
ln -sfn /usr/bin/pip3 /usr/bin/pip
ENV CPLUS_INCLUDE_PATH=/usr/include/gdal
ENV C_INCLUDE_PATH=/usr/include/gdal
RUN deps='build-essential gdal-bin python-gdal libgdal-dev kmod wget apache2' && \
apt-get update && \
apt-get install -y $deps
RUN pip install --upgrade pip && \
pip install GDAL==$(gdal-config --version)
RUN apt-get update\
&& apt-get install -y curl
RUN apt-get update && apt-get -y upgrade && \
apt-get -f -y install curl apt-transport-https lsb-release gnupg python3-pip python-pip && \
curl -sL https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > /etc/apt/trusted.gpg.d/microsoft.asc.gpg && \
CLI_REPO=$(lsb_release -cs) && \
echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ ${CLI_REPO} main" \
> /etc/apt/sources.list.d/azure-cli.list && \
apt-get update && \
apt-get install -y azure-cli && \
rm -rf /var/lib/apt/lists/*
# update pip
RUN python3 -m pip install --no-cache-dir \
pip \
setuptools \
wheel \
--upgrade \
&& python3 -m pip install --no-cache-dir numpy
# install dependencies
COPY requirements.txt /home/ibf
RUN pip install --no-cache-dir -r requirements.txt
# Copy code and install
ADD pipeline .
RUN pip install .