generated from u-brite/team-repo-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
33 lines (24 loc) · 842 Bytes
/
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
FROM rocker/r-ubuntu:22.04
LABEL maintainer="Shaurita Hutchins <sdhutchins@uab.edu>"
RUN apt-get update && apt-get install -y --no-install-recommends \
sudo \
pandoc \
pandoc-citeproc \
libcurl4-gnutls-dev \
libcairo2-dev \
libxt-dev \
libssl-dev \
libssh2-1-dev \
&& rm -rf /var/lib/apt/lists/*
COPY Rprofile.site /etc/R
ENV _R_SHLIB_STRIP_=true
RUN install.r shiny jsonlite httr shinyjs bslib BiocManager xml2 DT
RUN R -e 'BiocManager::install(ask = F)' && R -e 'BiocManager::install("wppi")'
RUN echo "local(options(shiny.port = 3838, shiny.host = '0.0.0.0'))" > /usr/lib/R/etc/Rprofile.site
RUN addgroup --system app && adduser --system --ingroup app app
WORKDIR /home/app/app
COPY app .
RUN chown app:app -R /home/app/app
USER app
EXPOSE 3838
CMD ["R", "-e", "shiny::runApp('/home/app/app')"]