qtl / Dockerfile
softwareDevelopment's picture
Update Dockerfile
00b8aa1 verified
Raw History Blame Contribute Delete
1.97 kB
FROM rocker/shiny:latest
# Set working directory inside container
WORKDIR /code
# Install additional system dependencies
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 \
zlib1g-dev \
libbz2-dev \
liblzma-dev \
libharfbuzz-dev \
libfribidi-dev \
libfreetype6-dev \
libpng-dev \
libtiff5-dev \
libjpeg-dev \
&& rm -rf /var/lib/apt/lists/*
# Install CRAN packages (excluding problematic ones)
RUN install2.r --error \
nloptr \
lme4 \
emmeans \
readxl \
plotly \
shinyjs \
shinyWidgets \
DT \
RColorBrewer \
ggrepel \
openxlsx \
corrplot \
UpSetR \
ggcorrplot \
cowplot \
pheatmap \
viridis \
ggridges \
ggExtra \
circlize \
foreach \
doParallel \
tidyverse \
igraph \
data.table \
qtl \
shinycssloaders \
gridExtra \
ggplot2 \
dplyr \
tidyr \
scales \
shinydashboard \
heatmaply \
UpSetR
# Install BiocManager and Bioconductor packages
RUN R -e "install.packages('BiocManager', repos='https://cloud.r-project.org/')" && \
R -e "BiocManager::install(c('ComplexHeatmap', 'GenomicRanges', 'IRanges', 'S4Vectors', 'Biostrings'), ask=FALSE, update=FALSE)"
# Install remotes and then install qtlcharts
RUN R -e "install.packages('remotes', repos='https://cloud.r-project.org/')" && \
R -e "remotes::install_github('kbroman/qtlcharts', upgrade='never', dependencies=FALSE)"
# 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)"]