-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
59 lines (49 loc) · 1.65 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
55
56
57
58
59
###########################################################################
# :AUTHOR: Katarzyna Ewa Lewinska [[email protected]]
# :DATE: 14 March 2023
#
# :Description: A Docker image for a container to run remotePARTS
#
# :Updates: 2023-08-31: r-base:4.3.1; add 'sp', 'sf', and 'terra' R packages
#
# :2Do:
#
# :Disclaimer: The author of this code accepts no responsibility for errors or omissions in this work
# and shall not be liable for any damage caused by these.
###########################################################################
FROM r-base:4.3.1
WORKDIR /home/docker
# disable interactive frontends
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get -y update && apt-get -y upgrade && \
apt-get install -y \
libcurl4-openssl-dev \
libfontconfig1-dev \
libfreetype-dev \
libfreetype-dev \
libudunits2-dev \
libgeos-dev \
libproj-dev \
libfribidi-dev \
libgdal-dev \
libharfbuzz-dev \
libjpeg-dev \
libpng-dev \
libssh2-1-dev \
libssl-dev \
libtiff5-dev \
libxml2-dev \
zlib1g-dev \
cmake
RUN Rscript -e "install.packages(c('devtools', 'dplyr'))" && \
Rscript -e "devtools::install_github('morrowcj/remotePARTS')" && \
Rscript -e "install.packages(c('snow', 'parallel', 'doParallel', 'foreach', 'graphics'))" && \
Rscript -e "install.packages(c('raster', 'sp', 'terra','data.table', 'rgdal'), dependencies = TRUE, repos = 'https://cloud.r-project.org')" && \
Rscript -e "devtools::install_github('r-spatial/sf')" && \
# Clear installation data
apt-get clean && rm -r /var/cache/
USER docker
# ENV HOME /home/docker
# ENV PATH /home/docker/bin
# Entry point
CMD ["Rscript"]