forked from digitalearthafrica/ndvi-anomalies
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
41 lines (31 loc) · 1.08 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
FROM osgeo/gdal:ubuntu-small-3.4.1
ENV CURL_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt
# Add in the dask configuration
COPY docker/distributed.yaml /etc/dask/distributed.yaml
#adding in geojson extents
COPY testing/data/testing_extent.geojson /code/testing_extent.geojson
COPY testing/data/africa_land_extent.geojson /code/africa_land_extent.geojson
# Install system tools
RUN apt-get update \
&& apt-get install software-properties-common -y
ADD docker/apt-run.txt /conf/
RUN apt-get update \
&& sed 's/#.*//' /conf/apt-run.txt | xargs apt-get install -y \
&& rm -rf /var/lib/apt/lists/*
# Install our Python requirements
COPY docker/requirements.txt docker/version.txt /conf/
RUN cat /conf/version.txt && \
pip install --no-cache-dir --upgrade pip \
&& pip install --no-cache-dir \
-r /conf/requirements.txt \
--no-binary rasterio \
--no-binary shapely \
--no-binary fiona
# Install the ndvi-tools
ADD production/ndvi_tools /code
RUN pip install /code
WORKDIR /code
RUN pip freeze
# test installations
RUN ndvi-task --help && \
odc-stats --version