oldham2 / Dockerfile
cpflecht's picture
Update Dockerfile
671b63b verified
Raw
History Blame Contribute Delete
952 Bytes
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"]