-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
38 lines (27 loc) · 1.04 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
FROM "rocker/r-ver:4.2.2"
LABEL maintainer="<Maintainer name>, <Maintainer email>"
RUN apt-get update && apt-get install -y gnupg
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
# system libraries of general use
RUN apt-get update && apt-get install -y \
sudo \
pandoc \
pandoc-citeproc \
libcurl4-gnutls-dev \
libcairo2-dev \
libxt-dev \
libssl-dev \
libssh2-1-dev \
libssl3 \
libxml2-dev
# basic shiny functionality
RUN R -e "install.packages(c('shiny'), repos='https://cloud.r-project.org/')"
# install dependencies of the dashboard_app
RUN R -e "install.packages(c('jsonlite','magrittr','r2d3','readxl','pkgload', repos='https://cloud.r-project.org/')"
RUN R -e "remotes::install_github('ScotGovAnalysis/NZST-Share')"
# copy the app to the image
RUN mkdir /root/<username>
RUN mkdir /root/<username>/systemstool
COPY systemstool /root/<username>/systemstool
EXPOSE 3937
CMD ["R", "-e", "shiny::runApp('/root/<username>/systemstool',host='0.0.0.0',port=3937)"]