-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
52 lines (35 loc) · 1.96 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
47
48
49
50
FROM fredhutch/r-shiny-server-base:4.3.2
RUN apt-get update -y && apt-get install -y libssh-dev python3-pip git libmariadb-dev
RUN R -q -e 'install.packages(c("ellipsis"), repos="https://cran.rstudio.com/")'
RUN R -q -e 'install.packages(c("shiny"), repos="https://cran.rstudio.com/")'
RUN R -q -e 'install.packages(c("waldo", "shinyFeedback", "shinyWidgets", "shinydashboard", "shinydashboardPlus", "ssh", "remotes", "markdown", "lubridate", "jsonlite", "dplyr", "DT", "glue", "httr", "purrr", "RColorBrewer", "rlang", "shinyBS", "shinyjs", "tidyverse", "uuid", "memoise", "rclipboard", "shinyvalidate", "shinylogs", "testhat", "bsicons", "listviewer", "cookies", "RMariaDB", "DBI"), repos="https://cran.r-project.org")'
RUN R -q -e "remotes::install_github('getwilds/[email protected]')"
RUN R -q -e "remotes::install_github('getwilds/[email protected]')"
ADD .my.cnf /root/
# python wdl2mermaid setup:
RUN pip install git+https://github.com/chanzuckerberg/miniwdl-viz.git
RUN R -q -e "remotes::install_github('timelyportfolio/reactR')"
RUN rm -rf /srv/shiny-server/
COPY app/ /srv/shiny-server/
# COPY ./shiny-server.conf /etc/shiny-server/
ARG CI_COMMIT_BRANCH
ARG CI_COMMIT_SHA
ARG CI_COMMIT_SHORT_SHA
ARG CI_COMMIT_TIMESTAMP
ARG CI_COMMIT_TAG
ENV CI_COMMIT_BRANCH=$CI_COMMIT_BRANCH
ENV CI_COMMIT_SHA=$CI_COMMIT_SHA
ENV CI_COMMIT_SHORT_SHA=$CI_COMMIT_SHORT_SHA
ENV CI_COMMIT_TIMESTAMP=$CI_COMMIT_TIMESTAMP
ENV CI_COMMIT_TAG=$CI_COMMIT_TAG
RUN echo "export CI_COMMIT_BRANCH=$CI_COMMIT_BRANCH" >> /home/shiny/.bashrc
RUN echo "export CI_COMMIT_SHA=$CI_COMMIT_SHA" >> /home/shiny/.bashrc
RUN echo "export CI_COMMIT_SHORT_SHA=$CI_COMMIT_SHORT_SHA" >> /home/shiny/.bashrc
RUN echo "export CI_COMMIT_TIMESTAMP=$CI_COMMIT_TIMESTAMP" >> /home/shiny/.bashrc
RUN echo "export CI_COMMIT_TAG=$CI_COMMIT_TAG" >> /home/shiny/.bashrc
RUN chown shiny:shiny /home/shiny/.bashrc
ENV APPLICATION_LOGS_TO_STDOUT=true
ENV SHINY_LOG_STDERR=1
WORKDIR /srv/shiny-server/
CMD R -f start.R
# CMD /usr/bin/shiny-server