-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (26 loc) · 817 Bytes
/
Copy pathDockerfile
File metadata and controls
32 lines (26 loc) · 817 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 rocker/shiny:4.4.2
RUN apt-get update && apt-get install -y \
libcurl4-openssl-dev \
libssl-dev \
libxml2-dev \
libfontconfig1-dev \
libfreetype6-dev \
libpng-dev \
libtiff5-dev \
libjpeg-dev \
libharfbuzz-dev \
libfribidi-dev \
&& rm -rf /var/lib/apt/lists/*
RUN R -e "install.packages(c( \
'shiny', 'shinydashboard', 'plotly', 'DT', 'dplyr', 'scales', \
'htmltools', 'pagedown', 'arrow', 'stringr', 'tibble', 'readr', \
'jsonlite', 'lubridate', 'grid', 'httr' \
), repos='https://cloud.r-project.org')"
WORKDIR /srv/shiny-server/procurement-risk-analytics
COPY app.R .
COPY R/ R/
COPY outputs/ outputs/
COPY README.md .
COPY LICENSE .
EXPOSE 3838
CMD ["R", "-e", "shiny::runApp('/srv/shiny-server/procurement-risk-analytics', host='0.0.0.0', port=3838)"]