-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
51 lines (44 loc) · 1.47 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
# Pulled on Nov 6th'23
FROM rocker/geospatial:4.3.2
LABEL org.label-schema.license="GPL-2.0" \
org.label-schema.vcs-url="https://github.com/gdsl-ul/gdsr" \
org.label-schema.vendor="Geographic Data Science Lab" \
maintainer="Dani Arribas-Bel <[email protected]>"
# Load up stack
RUN wget https://github.com/darribas/gds_env/raw/v10.0/gds/install_R_gds.sh \
-O $HOME/install_R_gds.sh \
&& chmod +x $HOME/install_R_gds.sh \
&& $HOME/install_R_gds.sh \
&& rm $HOME/install_R_gds.sh
#--- tippecanoe (here for mapboxapi) ---#
RUN git clone https://github.com/felt/tippecanoe.git \
&& cd tippecanoe \
&& make -j
RUN cd tippecanoe \
&& make install \
&& cd .. \
&& rm -rf tippecanoe
USER rstudio
# Check out book
RUN wget https://github.com/GDSL-UL/san/archive/refs/heads/master.zip \
-O /home/rstudio/san.zip \
&& cd /home/rstudio \
&& unzip /home/rstudio/san.zip \
&& rm /home/rstudio/san.zip
# Check out R4ps
RUN wget https://github.com/fcorowe/r4ps/archive/refs/heads/main.zip \
-O /home/rstudio/r4ps.zip \
&& cd /home/rstudio \
&& unzip /home/rstudio/r4ps.zip \
&& rm /home/rstudio/r4ps.zip
# Check out WMA
RUN wget https://github.com/GDSL-UL/wma/archive/refs/heads/main.zip \
-O /home/rstudio/wma.zip \
&& cd /home/rstudio \
&& unzip /home/rstudio/wma.zip \
&& rm /home/rstudio/wma.zip
# Slim down
RUN rm -rf /home/rstudio/san-master/docs \
&& rm -rf /home/rstudio/r4ps-main/docs \
&& rm -rf /home/rstudio/wma-main/docs
USER root