qtl / Dockerfile
International Rice Research Institute
Update Dockerfile
c211931 verified
Raw History Blame
1.86 kB
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 \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Install DT dependencies first
RUN install2.r --error \
htmltools \
htmlwidgets \
jsonlite \
crosstalk \
magrittr \
promises \
ellmer \
shinychat \
text2vec \
Matrix
# sparse matrices
# Install main packages, tidyverse, and igraph in a single RUN command
# Note: If --error is not supported by your install2.r, remove it and use:
# RUN install2.r nloptr lme4 emmeans readxl plotly shinyjs shinyWidgets DT RColorBrewer ggrepel openxlsx randomForest caret qtl writexl viridis devtools tidyverse igraph
RUN install2.r --error \
nloptr \
lme4 \
emmeans \
readxl \
plotly \
shinyjs \
shinyWidgets \
DT \
RColorBrewer \
ggrepel \
openxlsx \
randomForest \
caret \
qtl \
writexl \
viridis \
devtools \
tidyverse \
igraph \
vcfR \
poppr \
igraph \
reshape2 \
viridis \
plotly
# Install packages from GitHub
RUN R -e "devtools::install_github('cran/qtlDesign')" \
&& R -e "devtools::install_github('jtlovell/qtlTools')"
# Create www directory and health file
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)"]