-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
41 lines (35 loc) · 1.52 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
39
40
41
FROM r-base:4.0.1
LABEL maintainer="[email protected]"
# Install Ubuntu packages
RUN apt-get update && apt-get install --no-install-recommends -y \
sudo \
gdebi-core \
pandoc \
pandoc-citeproc \
libcurl4-gnutls-dev \
libcairo2-dev/unstable \
libxt-dev \
libssl-dev \
&& VERSION=1.5.7.890 \
&& wget --no-verbose "https://s3.amazonaws.com/rstudio-shiny-server-os-build/ubuntu-12.04/x86_64/shiny-server-$VERSION-amd64.deb" -O ss-latest.deb \
&& gdebi -n ss-latest.deb \
&& rm -f version.txt ss-latest.deb \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Install R packages that are required
RUN R -e "install.packages('plyr',dependencies=TRUE, repos='http://cran.rstudio.com/')"
RUN R -e "install.packages('shinydashboard',dependencies=TRUE, repos='http://cran.rstudio.com/')"
RUN R -e "install.packages('rhandsontable',dependencies=TRUE, repos='http://cran.rstudio.com/')"
RUN R -e "install.packages('ggplot2',dependencies=TRUE, repos='http://cran.rstudio.com/')"
RUN R -e "install.packages('meta',dependencies=TRUE, repos='http://cran.rstudio.com/')"
COPY scripts .
RUN Rscript turnToBin.R
RUN rm turnToBin.R dictionary.csv
RUN mv translation.bin /srv/shiny-server/translation.bin
COPY shiny-server.conf /etc/shiny-server/shiny-server.conf
COPY src /srv/shiny-server/
WORKDIR /srv/shiny-server/
EXPOSE 80
# Copy further configuration files into the Docker image
COPY shiny-server.sh /usr/bin/shiny-server.sh
CMD ["/usr/bin/shiny-server.sh"]