File size: 1,636 Bytes
8f93a13 e05d5b4 a4e178d e05d5b4 cd45d76 2858c05 8f93a13 1ca9a82 8f93a13 cd45d76 1ca9a82 331a80a 8f93a13 1ca9a82 8f93a13 331a80a e05d5b4 8f93a13 a4e178d 8f93a13 a4e178d 8f93a13 cd45d76 83a3c7f ba8821f 95646be 3abe4a1 347a562 11cab89 c3449d5 2858c05 cd45d76 331a80a cd45d76 8ee3eb9 1ca9a82 a4e178d ab07208 a4e178d a1d1b49 a4e178d f975d06 a1d1b49 | 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 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 | FROM rocker/shiny:latest
# Set working directory inside container
WORKDIR /code
# Install additional system dependencies including libglpk for igraph
RUN apt-get update && apt-get install -y \
libcurl4-openssl-dev \
libssl-dev \
libxml2-dev \
libnlopt-dev \
libicu-dev \
libgdal-dev \
libgeos-dev \
libproj-dev \
libv8-dev \
libnode-dev \
libglpk-dev \
libglpk40
# Install remotes package first (needed for GitHub installations)
RUN install2.r --error remotes
# Install DT dependencies first
RUN install2.r --error \
htmltools \
htmlwidgets \
jsonlite \
crosstalk \
magrittr \
promises
# Then install the main packages (removed colorpicker from this list)
RUN install2.r --error \
nloptr \
lme4 \
emmeans \
readxl \
plotly \
shinyjs \
shinyWidgets \
DT \
RColorBrewer \
ggrepel \
openxlsx \
blme \
pbkrtest \
lmerTest \
GGally \
corrplot \
agricolae \
car \
broom \
cluster \
factoextra \
pheatmap \
RColorBrewer \
moments \
reshape2 \
gridExtra
# Install tidyverse and igraph
RUN install2.r --error tidyverse igraph
# Install colourpicker from GitHub
RUN R -e "remotes::install_github('daattali/colourpicker')"
# Create www directory and health file directly (NO external file needed)
RUN mkdir -p /code/www && echo "OK" > /code/www/health
# Copy app code
COPY app.R /code/
# Expose the port Shiny will run on
EXPOSE 7860
# Run the app with corrected host address
CMD ["R", "--quiet", "-e", "shiny::runApp('/code', host='0.0.0.0', port=7860)"] |