-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (25 loc) · 747 Bytes
/
Copy pathDockerfile
File metadata and controls
32 lines (25 loc) · 747 Bytes
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
#FROM r-base:3.4.0
FROM rocker/shiny-verse
RUN apt update -y \
&& apt install -y python2.7 \
cmake \
gcc \
g++ \
git \
libjpgalleg4-dev \
libcurl4-openssl-dev \
libssl-dev \
libxml2-dev \
libgdal-dev \
libudunits2-dev \
libpq-dev \
gfortran
ADD . /srv/shiny-server
WORKDIR /srv/shiny-server
RUN R -e "install.packages('packrat')"
RUN R -e "packrat::restore()"
# RUN R -e "install.packages(c('shiny', 'leaflet', 'DT', 'googlesheets', 'tidyverse', 'lubridate', 'sf', 'packrat', 'htmltab', 'shinydashboard', 'shinycssloaders', 'shinyjs'), repos='https://cran.rstudio.com/')"
ADD start-shiny-server.sh /usr/bin/start-shiny-server.sh
ADD shiny-server.conf /etc/shiny-server
EXPOSE 3838
ENTRYPOINT ["/usr/bin/start-shiny-server.sh"]