-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
48 lines (44 loc) · 1.2 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
FROM rocker/shiny:4.0.5
RUN apt-get update && apt-get install -y \
r-base gdebi-core \
r-base \
curl \
libcurl4-openssl-dev \
libssl-dev \
libxml2-dev \
libgdal-dev \
libudunits2-dev \
libgeos-dev \
libproj-dev
RUN R -e 'install.packages(c(\
"shiny", \
"shinydashboard", \
"ggplot2", \
"DT", \
"reshape2", \
"sf", \
"shinythemes", \
"sp", \
"plotly", \
"xts", \
"data.table", \
"ggmap", \
"httr", \
"leaflet", \
"lubridate", \
"readxl", \
"RColorBrewer", \
"rgeos", \
"rvest", \
"stringr", \
"stringdist", \
"git2r", \
"Rcpp" \
), \
repos="https://packagemanager.rstudio.com/all/__linux__/focal/latest"\
)'
COPY ./shiny-app/data /srv/shiny-server/data
COPY ./shiny-app/data/shapefiles /srv/shiny-server/data/shapefiles
COPY ./shiny-app/* /srv/shiny-server/
COPY ./shiny-app/www /srv/shiny-server/www
CMD ["/usr/bin/shiny-server"]