-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
40 lines (36 loc) · 1.55 KB
/
Copy pathDockerfile
File metadata and controls
40 lines (36 loc) · 1.55 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
39
40
FROM rocker/shiny:4.4
ARG DEBIAN_FRONTEND="noninteractive"
ARG CONTAINER_TIMEZONE="GMT"
ENV LANG=en_US.UTF-8
ENV LC_ALL=en_US.UTF-8
ENV _R_SHLIB_STRIP_=true
RUN ln -snf /usr/share/zoneinfo/${CONTAINER_TIMEZONE} /etc/localtime && \
echo ${CONTAINER_TIMEZONE} > /etc/timezone && \
apt update && \
apt install -y --no-install-recommends git-core libssl-dev \
libcurl4-gnutls-dev curl \
libsodium-dev libxml2-dev \
libicu-dev locales libglpk-dev && \
echo "${LC_ALL} UTF-8" >> /etc/locale.gen && \
locale-gen "${LC_ALL}" && \
/usr/sbin/update-locale LANG="${LC_ALL}" && \
install2.r --error --skipinstalled shiny shinyWidgets shinydashboard shinyjs DT \
ggplot2 RColorBrewer ggpubr ggrepel plotly \
data.table visNetwork igraph fresh shinyBS \
readr sass httr2 shinycssloaders openxlsx \
dplyr tidyr rintrojs bsicons && \
apt autoremove --purge -y && \
apt autoclean && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /srv/shiny-server/*
COPY app /srv/shiny-server
RUN chown -R shiny:shiny /srv/shiny-server && \
mkdir -p /srv/shiny-server/app_cache && \
chmod 777 /srv/shiny-server/app_cache
COPY Rprofile.site /usr/local/lib/R/etc/Rprofile.site
EXPOSE 3838
WORKDIR /srv/shiny-server
#CMD ["/init"]
USER shiny
CMD ["/usr/bin/shiny-server"]