forked from juhahu/shiny-openshift
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
46 lines (39 loc) · 1.06 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
42
43
44
45
46
FROM rocker/shiny:latest
LABEL maintainer="Juha Hulkkonen <[email protected]>"
RUN apt-get update
RUN apt-get install -y --no-install-recommends \
libpq-dev \
libxml2-dev \
libssl-dev \
libcurl4-openssl-dev \
nano
RUN install2.r -e shinydashboard \
DBI \
RPostgreSQL \
jsonlite \
dplyr \
magrittr \
dbplyr \
stringr \
tidyr \
DT \
ggplot2 \
shinyjs \
scales \
plotly \
shinyBS \
lubridate \
shinyWidgets \
causaleffect
COPY shiny-server.conf /etc/shiny-server/shiny-server.conf
RUN chown -R shiny /srv/shiny-server/
RUN chown -R shiny /var/lib/shiny-server/
# OpenShift gives a random uid for the user and some programs try to find a username from the /etc/passwd.
# Let user to fix it, but obviously this shouldn't be run outside OpenShift
RUN chmod ug+rw /etc/passwd
COPY fix-username.sh /fix-username.sh
COPY shiny-server.sh /usr/bin/shiny-server.sh
RUN chmod a+rx /usr/bin/shiny-server.sh
# Make sure the directory for individual app logs exists and is usable
RUN chmod -R a+rwX /var/log/shiny-server
RUN chmod -R a+rwX /var/lib/shiny-server