-
Notifications
You must be signed in to change notification settings - Fork 22
/
Dockerfile
58 lines (45 loc) · 1.58 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
FROM rocker/shiny:4.1.2
MAINTAINER Aroon Chande "[email protected], [email protected]"
ENV LANG=en_US.UTF-8
ENV TZ=America/New_York
RUN apt-get update && apt-get install -y --no-install-recommends \
sudo \
cron \
pandoc \
pandoc-citeproc \
git \
wget \
curl \
libudunits2-dev \
libgdal-dev \
libgeos-dev \
libproj-dev \
gdebi-core \
libxml2-dev \
&& apt clean \
&& locale-gen en_US.utf8 \
&& /usr/sbin/update-locale LANG=en_US.UTF-8 &&\
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime &&\
echo $TZ > /etc/timezone\
&& mkdir /root/.ssh
RUN install2.r -n 4 withr ggrepel matlab lubridate \
dplyr ggthemes leaflet mapview shinythemes \
devtools ggthemes ggpubr leaflet.extras \
RCurl rtweet tidyverse vroom RMySQL remotes
run R -e "remotes::install_github(c('ar0ch/sever', 'ar0ch/shinypanels', 'dreamRs/shinyWidgets', 'andrewsali/shinycssloaders'))"
COPY bin/phantomjs /usr/bin/
COPY Rprofile.site /usr/lib/R/etc/
COPY .rtweet_token.rds /root/.rtweet_token.rds
COPY docker_github /root/.ssh/id_rsa
COPY docker_github.pub /root/.ssh/id_rsa.pub
RUN apt-get update -q \
&& apt-get -yqq install ssh \
&& apt-get clean \
&& ssh-keyscan -H github.com >> /root/.ssh/known_hosts \
&& chmod 0600 /root/.ssh/id_rsa /root/.ssh/id_rsa.pub \
&& git config --global user.email "[email protected]" \
&& git config --global user.name "c19r-bot" \
&& git clone [email protected]:appliedbinf/covid19-event-risk-planner.git /root/repo
COPY COVID19-Event-Risk-Planner /srv/shiny-server
COPY Renviron /home/shiny/.Renviron
EXPOSE 3838