-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
71 lines (60 loc) · 1.75 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
60
61
62
63
64
65
66
67
68
69
70
71
# Reference: https://aboland.ie/Docker.html
# Build Steps:
# docker build -t brownag/labtaxa .
# docker push brownag/labtaxa:latest
# docker run -d -p 8787:8787 -e PASSWORD=mypassword -v ~/Documents:/home/rstudio/Documents -e ROOT=TRUE brownag/labtaxa
# Then open your web browser and navigate to `http://localhost:8787`. The default username is `rstudio` and the default password is `mypassword`.
FROM rocker/rstudio:latest
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
libxml2 \
git \
build-essential \
libproj-dev \
libgdal-dev \
libgeos-dev \
gdal-bin \
proj-bin \
libxt-dev \
libxml2-dev \
libsqlite3-dev \
libfribidi-dev \
libudunits2-dev \
default-jre \
default-jdk \
libcurl4-openssl-dev \
wget \
bzip2 \
libxtst6 \
libgtk-3-0 \
libx11-xcb-dev \
libdbus-glib-1-2 \
libxt6 \
libpci-dev
RUN wget https://download-installer.cdn.mozilla.net/pub/firefox/releases/109.0/linux-x86_64/en-US/firefox-109.0.tar.bz2
RUN tar -xjf firefox-*.tar.bz2
RUN mv firefox /opt
RUN ln -s /opt/firefox/firefox /usr/local/bin/firefox
RUN install2.r --error \
--deps TRUE \
devtools \
Rcpp \
terra \
sf \
ggplot2 \
tidyterra \
rmarkdown \
httr
COPY misc/install.R /home/rstudio/
COPY misc/demo.R /home/rstudio/
RUN git clone https://github.com/brownag/labtaxa
RUN mkdir /root/labtaxa_data
RUN mkdir -p /home/rstudio/.local/share/R/labtaxa/
RUN Rscript /home/rstudio/install.R
RUN rm /home/rstudio/install.R
RUN cp -r ./labtaxa /home/rstudio/labtaxa
RUN rm -r ./labtaxa
RUN cp -r ~/labtaxa_data/* /home/rstudio/.local/share/R/labtaxa/
RUN rm -r ~/labtaxa_data
RUN rm -r ~/Downloads
RUN chown -hR rstudio /home/rstudio /home/rstudio