-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
35 lines (27 loc) · 1014 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
34
35
FROM rocker/shiny:4.0.5
LABEL authors="Lisi Arend, Judith Bernett, Quirin Manz"
#install system packages
RUN apt-get update && apt-get install -y libxml2-dev libssl-dev libcurl4-openssl-dev default-jdk libgmp3-dev\
r-cran-rjava \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/
#libmariadbclient-dev libpq-dev libv8-dev liblzma-dev libbz2-dev zlib1g-dev libncurses5-dev
#copy shiny app to work dir
RUN mkdir /srv/cytof_pipeline
WORKDIR /srv/cytof_pipeline
#install R packages via renv
ENV RENV_VERSION 0.13.1
RUN R -e "install.packages('remotes', repos = c(CRAN = 'https://cloud.r-project.org'))"
RUN R -e "remotes::install_github('rstudio/renv@${RENV_VERSION}')"
COPY renv.lock.shiny renv.lock
RUN R -e "renv::restore()"
# copy shiny app
COPY ./*.R ./
COPY ./functions ./functions
COPY ./ui ./ui
COPY ./server ./server
COPY ./www ./www
COPY ./data ./data
RUN echo "options(shiny.maxRequestSize=5000*1024^2)" > .Rprofile
EXPOSE 3838
CMD ["R", "-e", "shiny::runApp(host = '0.0.0.0', port = 3838)"]