File size: 952 Bytes
671b63b 035c8b4 5c53473 035c8b4 5c53473 035c8b4 671b63b 5c53473 035c8b4 5c53473 035c8b4 5c53473 | 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 | FROM rocker/shiny:4.4.0
RUN apt-get update && apt-get install -y \
libcurl4-openssl-dev \
libssl-dev \
libxml2-dev \
libfontconfig1-dev \
libharfbuzz-dev \
libfribidi-dev \
libfreetype6-dev \
libpng-dev \
libtiff5-dev \
libjpeg-dev \
&& rm -rf /var/lib/apt/lists/*
RUN R -e "install.packages(c( \
'shiny', \
'shinythemes', \
'DT', \
'dplyr', \
'tidyr', \
'readr', \
'plotly', \
'stringr', \
'scales', \
'htmltools' \
), repos='https://cran.rstudio.com/')"
COPY app.R /srv/shiny-server/app/app.R
COPY OA_sheet_for_app.csv /srv/shiny-server/app/OA_sheet_for_app.csv
COPY all_players_enriched_multiseason.csv /srv/shiny-server/app/all_players_enriched_multiseason.csv
RUN printf '#!/bin/bash\ncd /srv/shiny-server/app && Rscript -e "shiny::runApp(\".\", host=\"0.0.0.0\", port=7860)" 2>&1\n' > /start.sh \
&& chmod +x /start.sh
EXPOSE 7860
CMD ["/start.sh"] |