Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +14 -71
Dockerfile
CHANGED
|
@@ -1,11 +1,6 @@
|
|
| 1 |
# ============================================================
|
| 2 |
# QTL Mapper Pro β Dockerfile for Hugging Face Spaces
|
| 3 |
# ============================================================
|
| 4 |
-
# Hugging Face Spaces (Docker SDK) requires:
|
| 5 |
-
# - App listens on port 7860
|
| 6 |
-
# - Non-root user (uid 1000) for security
|
| 7 |
-
# ============================================================
|
| 8 |
-
|
| 9 |
FROM rocker/shiny:4.3.3
|
| 10 |
|
| 11 |
# ββ System dependencies ββββββββββββββββββββββββββββββββββββββ
|
|
@@ -23,99 +18,47 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
| 23 |
libgit2-dev \
|
| 24 |
libv8-dev \
|
| 25 |
pandoc \
|
| 26 |
-
&& apt-get clean \
|
| 27 |
-
&& rm -rf /var/lib/apt/lists/*
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
# Install additional system dependencies including libglpk for igraph
|
| 34 |
-
RUN apt-get update && apt-get install -y \
|
| 35 |
-
libcurl4-openssl-dev \
|
| 36 |
-
libssl-dev \
|
| 37 |
-
libxml2-dev \
|
| 38 |
-
libnlopt-dev \
|
| 39 |
-
libicu-dev \
|
| 40 |
-
libgdal-dev \
|
| 41 |
-
libgeos-dev \
|
| 42 |
-
libproj-dev \
|
| 43 |
-
libv8-dev \
|
| 44 |
-
libnode-dev \
|
| 45 |
libglpk-dev \
|
| 46 |
libglpk40 \
|
|
|
|
|
|
|
| 47 |
zlib1g-dev \
|
| 48 |
libbz2-dev \
|
| 49 |
liblzma-dev \
|
|
|
|
| 50 |
&& rm -rf /var/lib/apt/lists/*
|
| 51 |
|
| 52 |
-
#
|
| 53 |
RUN install2.r --error \
|
| 54 |
-
htmltools
|
| 55 |
-
htmlwidgets \
|
| 56 |
-
jsonlite \
|
| 57 |
-
crosstalk \
|
| 58 |
-
magrittr \
|
| 59 |
-
promises
|
| 60 |
|
| 61 |
-
# Then install the main packages (excluding QTLseqr and vcfR for now)
|
| 62 |
RUN install2.r --error \
|
| 63 |
-
nloptr \
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
readxl \
|
| 67 |
-
plotly \
|
| 68 |
-
shinyjs \
|
| 69 |
-
shinyWidgets \
|
| 70 |
-
DT \
|
| 71 |
-
RColorBrewer \
|
| 72 |
-
ggrepel \
|
| 73 |
-
openxlsx
|
| 74 |
|
| 75 |
-
# Install tidyverse and igraph
|
| 76 |
RUN install2.r --error tidyverse igraph
|
| 77 |
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
RUN install2.r --error shiny
|
| 81 |
-
RUN install2.r --error shinyWidgets
|
| 82 |
-
RUN install2.r --errorshinyjs
|
| 83 |
-
RUN install2.r --errorshinycssloaders
|
| 84 |
-
RUN install2.r --errorqtl
|
| 85 |
-
RUN install2.r --errorggplot2
|
| 86 |
-
RUN install2.r --errorplotly
|
| 87 |
-
RUN install2.r --errorDT
|
| 88 |
-
RUN install2.r --errordplyr
|
| 89 |
-
RUN install2.r --errortidyr
|
| 90 |
-
RUN install2.r --errorviridis
|
| 91 |
-
RUN install2.r --errorRColorBrewer
|
| 92 |
-
RUN install2.r --errorreshape2
|
| 93 |
-
RUN install2.r --errorscales
|
| 94 |
|
| 95 |
-
#
|
| 96 |
RUN R -e "install.packages('BiocManager', repos='https://cloud.r-project.org/')"
|
| 97 |
|
| 98 |
-
|
| 99 |
-
RUN R -e "BiocManager::install(c('GenomicRanges', 'IRanges', 'S4Vectors', 'Biostrings', 'Rsamtools', 'GenomeInfoDb'), ask=FALSE, update=FALSE)"
|
| 100 |
|
| 101 |
-
# Install vcfR package
|
| 102 |
RUN install2.r --error vcfR
|
| 103 |
|
| 104 |
-
#
|
| 105 |
RUN install2.r --error remotes
|
| 106 |
-
RUN install2.r --error shinycssloaders
|
| 107 |
|
| 108 |
-
# Install QTLseqr from GitHub
|
| 109 |
RUN R -e "remotes::install_github('bmansfeld/QTLseqr', upgrade='never', dependencies=FALSE)"
|
| 110 |
|
| 111 |
-
#
|
| 112 |
RUN mkdir -p /code/www && echo "OK" > /code/www/health
|
| 113 |
|
| 114 |
-
# Copy app code
|
| 115 |
COPY app.R /code/
|
| 116 |
|
| 117 |
-
# Expose the port Shiny will run on
|
| 118 |
EXPOSE 7860
|
| 119 |
|
| 120 |
-
# Run the app with corrected host address
|
| 121 |
CMD ["R", "--quiet", "-e", "shiny::runApp('/code', host='0.0.0.0', port=7860)"]
|
|
|
|
| 1 |
# ============================================================
|
| 2 |
# QTL Mapper Pro β Dockerfile for Hugging Face Spaces
|
| 3 |
# ============================================================
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
FROM rocker/shiny:4.3.3
|
| 5 |
|
| 6 |
# ββ System dependencies ββββββββββββββββββββββββββββββββββββββ
|
|
|
|
| 18 |
libgit2-dev \
|
| 19 |
libv8-dev \
|
| 20 |
pandoc \
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
libglpk-dev \
|
| 22 |
libglpk40 \
|
| 23 |
+
libnlopt-dev \
|
| 24 |
+
libicu-dev \
|
| 25 |
zlib1g-dev \
|
| 26 |
libbz2-dev \
|
| 27 |
liblzma-dev \
|
| 28 |
+
&& apt-get clean \
|
| 29 |
&& rm -rf /var/lib/apt/lists/*
|
| 30 |
|
| 31 |
+
# ββ R packages βββββββββββββββββββββββββββββββββββββββββββββββ
|
| 32 |
RUN install2.r --error \
|
| 33 |
+
htmltools htmlwidgets jsonlite crosstalk magrittr promises
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
|
|
|
|
| 35 |
RUN install2.r --error \
|
| 36 |
+
nloptr lme4 emmeans readxl plotly \
|
| 37 |
+
shinyjs shinyWidgets shinycssloaders \
|
| 38 |
+
DT RColorBrewer ggrepel openxlsx
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
|
|
|
|
| 40 |
RUN install2.r --error tidyverse igraph
|
| 41 |
|
| 42 |
+
RUN install2.r --error \
|
| 43 |
+
data.table shiny qtl ggplot2 dplyr tidyr viridis reshape2 scales
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 44 |
|
| 45 |
+
# ββ Bioconductor βββββββββββββββββββββββββββββββββββββββββββββ
|
| 46 |
RUN R -e "install.packages('BiocManager', repos='https://cloud.r-project.org/')"
|
| 47 |
|
| 48 |
+
RUN R -e "BiocManager::install(c('GenomicRanges','IRanges','S4Vectors','Biostrings','Rsamtools','GenomeInfoDb'), ask=FALSE, update=FALSE)"
|
|
|
|
| 49 |
|
|
|
|
| 50 |
RUN install2.r --error vcfR
|
| 51 |
|
| 52 |
+
# ββ GitHub packages ββββββββββββββββββββββββββββββββββββββββββ
|
| 53 |
RUN install2.r --error remotes
|
|
|
|
| 54 |
|
|
|
|
| 55 |
RUN R -e "remotes::install_github('bmansfeld/QTLseqr', upgrade='never', dependencies=FALSE)"
|
| 56 |
|
| 57 |
+
# ββ App setup ββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 58 |
RUN mkdir -p /code/www && echo "OK" > /code/www/health
|
| 59 |
|
|
|
|
| 60 |
COPY app.R /code/
|
| 61 |
|
|
|
|
| 62 |
EXPOSE 7860
|
| 63 |
|
|
|
|
| 64 |
CMD ["R", "--quiet", "-e", "shiny::runApp('/code', host='0.0.0.0', port=7860)"]
|