forked from draftd01/ICP4-siNTC-data-visualization
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
39 lines (32 loc) · 1.09 KB
/
Dockerfile
File metadata and controls
39 lines (32 loc) · 1.09 KB
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
# Use the official R base image from the Rocker project
FROM rocker/r-ver:4.3.1
# Install system dependencies for Shiny and Shiny Server
RUN apt-get update && apt-get install -y \
sudo \
wget \
gdebi-core \
pandoc \
pandoc-citeproc \
libcairo2-dev \
libxt-dev \
libssl-dev \
libcurl4-openssl-dev \
libxml2-dev \
libjpeg-dev \
libfreetype6-dev \
libfontconfig1-dev \
libpng-dev \
libtiff5-dev \
&& apt-get clean
# Install R packages needed for Shiny and Shiny Server
RUN R -e "install.packages(c('shiny', 'rmarkdown','ggplot2', 'plotly', 'heatmaply', 'bslib', 'DT', 'shinyWidgets', 'shinyjs', 'httr', 'jsonlite'), repos='https://cloud.r-project.org/')"
# Download and install Shiny Server
RUN wget https://download3.rstudio.org/ubuntu-14.04/x86_64/shiny-server-1.5.16.958-amd64.deb && \
gdebi -n shiny-server-1.5.16.958-amd64.deb && \
rm shiny-server-1.5.16.958-amd64.deb
# Create a directory for the Shiny app
RUN mkdir -p /srv/shiny-server/
# Expose the port for Shiny Server
EXPOSE 3838
# Run Shiny Server
CMD ["/usr/bin/shiny-server"]