-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
53 lines (41 loc) · 1.7 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
ARG BASE_CONTAINER=jupyter/datascience-notebook:notebook-6.0.3
FROM $BASE_CONTAINER
USER root
RUN pip install shapely && \
pip install geopandas && \
pip install rasterio && \
pip install ipyleaflet && \
pip install scikit-learn && \
pip install scikit-image && \
pip install xgboost && \
pip install torch torchvision && \
pip install Keras && \
pip install tensorflow && \
pip install pcse
RUN apt-get update && apt-get install software-properties-common -y
RUN add-apt-repository ppa:ubuntugis/ppa && apt-get update
RUN apt-get install gdal-bin -y && apt-get install libgdal-dev -y
RUN export CPLUS_INCLUDE_PATH=/usr/include/gdal && export C_INCLUDE_PATH=/usr/include/gdal
RUN pip install GDAL==$(gdal-config --version | awk -F'[.]' '{print $1"."$2}') && \
pip install pyrasterframes==0.8.5 && \
pip install jupyterhub==1.0.0
RUN apt-get install unrar -y && \
apt-get install lftp -y && \
apt-get install libproj-dev -y && \
apt-get install libgdal-dev -y && \
apt-get install gdal-bin -y && \
apt-get install proj-bin -y
RUN conda install -c conda-forge r-velox && \
conda install -c conda-forge r-rjava
RUN apt-get remove pkg-config -y
ENV PROJ_LIB="/opt/conda/share/proj"
RUN conda install openjdk=8.0.192=h14c3975_1003 && \
conda install --quiet --yes 'r-rgdal' && \
conda install --quiet --yes 'r-rgeos' && \
conda install --quiet --yes 'r-geojsonio' && \
conda install --quiet --yes 'r-spdep' && \
conda install --quiet --yes 'r-rcolorbrewer' && \
conda install --quiet --yes 'r-ncdf4'
ADD libraries.R libraries.R
RUN Rscript libraries.R
ADD extra/maxent.jar /opt/conda/lib/R/library/dismo/java/maxent.jar