-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
100 lines (92 loc) · 1.92 KB
/
Dockerfile
File metadata and controls
100 lines (92 loc) · 1.92 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
FROM python:3.7
FROM rocker/verse
MAINTAINER "Cesar Aybar" csaybar@gmail.com
# set display port to avoid crash
ENV DISPLAY=:99
# R
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
libv8-dev \
lbzip2 \
libfftw3-dev \
libgdal-dev \
libgeos-dev \
libgsl0-dev \
libgl1-mesa-dev \
libglu1-mesa-dev \
libhdf4-alt-dev \
libhdf5-dev \
libjq-dev \
libpq-dev \
libproj-dev \
libprotobuf-dev \
libnetcdf-dev \
libsqlite3-dev \
libssl-dev \
libudunits2-dev \
netcdf-bin \
postgis \
protobuf-compiler \
sqlite3 \
tk-dev \
unixodbc-dev \
&& install2.r --error \
RColorBrewer \
RandomFields \
RNetCDF \
classInt \
deldir \
gstat \
hdf5r \
lidR \
lwgeom \
mapdata \
maptools \
mapview \
ncdf4 \
proj4 \
raster \
rgdal \
rgeos \
rlas \
sf \
sp \
spacetime \
spatstat \
spatialreg \
spdep \
geoR \
geosphere \
reticulate \
stars \
leaflet \
mapview \
geojsonio \
getPass \
crayon \
cli \
googledrive \
googleCloudStorageR \
lwgeom \
cptcity \
rnaturalearth \
gganimate
RUN apt-get install -y \
python3-pip \
python3-dev \
&& pip3 install virtualenv
RUN pip3 install coveralls \
oauth2client \
numpy \
requests_toolbelt \
earthengine-api \
pyasn1
# Install anaconda
RUN echo 'export PATH=/opt/conda/bin:$PATH' > /etc/profile.d/conda.sh && \
wget --quiet https://repo.continuum.io/archive/Anaconda2-4.3.1-Linux-x86_64.sh -O ~/anaconda.sh && \
/bin/bash ~/anaconda.sh -b -p /opt/conda && \
rm ~/anaconda.sh
#ENV PATH /opt/conda/bin:$PATH
RUN R -e 'remotes::install_github("r-spatial/rgee")'
RUN mkdir -p /home/rgee/.config/earthengine/ndef && \
echo 'EARTHENGINE_PYTHON=/usr/bin/python3\nEARTHENGINE_INIT_MESSAGE="True"' > /home/rgee/.Renviron