-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathDockerfile
54 lines (47 loc) · 1.42 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
FROM ubuntu:20.04
WORKDIR /source
RUN apt update -y && \
apt upgrade -y && \
apt install -y && \
apt install software-properties-common -y && \
add-apt-repository ppa:ubuntugis/ppa && \
apt install \
python3.8 \
python3-pip \
gdal-bin \
geotiff-bin \
libspatialindex-dev \
libgdal-dev \
libgl1 \
libgeos++-dev \
libgeos-3.8.0 \
libgeos-c1v5 \
libgeos-dev \
libgeos-doc \
python-is-python3 \
git \
g++ -y
# Proj 9.0.0
RUN apt install wget cmake sqlite3 libsqlite3-dev -y && \
wget https://download.osgeo.org/proj/proj-9.0.0.tar.gz && \
tar -xzvf proj-9.0.0.tar.gz && \
cd proj-9.0.0/ && \
mkdir build && \
cd build/ && \
cmake .. && \
cmake --build . && \
cmake --build . --target install
RUN export CPLUS_INCLUDE_PATH="/usr/include/gdal"
RUN export C_INCLUDE_PATH="/usr/include/gdal"
RUN export LD_LIBRARY_PATH="/usr/local/lib"
RUN pip install -U setuptools>=59.5.0 wheel
RUN pip install Cython>=0.29.* numpy>=1.19.0
RUN GDAL_VERSION=$(gdal-config --version | awk -F'[.]' '{print $1"."$2"."$3}') && \
pip install GDAL==$GDAL_VERSION --no-binary=gdal
# pip
RUN pip install -U pip
RUN pip install -U ipython[all]
RUN pip install -U pyshp
# GeoWombat
RUN pip install git+https://github.com/jgrss/geowombat.git#egg=geowombat[coreg,ml,perf,zarr,time,web]
RUN pip install jax jaxlib