Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +76 -50
Dockerfile
CHANGED
|
@@ -26,55 +26,81 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
| 26 |
&& apt-get clean \
|
| 27 |
&& rm -rf /var/lib/apt/lists/*
|
| 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 |
-
RUN
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 77 |
EXPOSE 7860
|
| 78 |
|
| 79 |
-
#
|
| 80 |
-
CMD ["
|
|
|
|
| 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 |
+
# Install DT dependencies first
|
| 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 |
+
lme4 \
|
| 65 |
+
emmeans \
|
| 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 |
+
# Install data.table separately
|
| 79 |
+
RUN install2.r --error data.table
|
| 80 |
+
|
| 81 |
+
# Install BiocManager
|
| 82 |
+
RUN R -e "install.packages('BiocManager', repos='https://cloud.r-project.org/')"
|
| 83 |
+
|
| 84 |
+
# Install Bioconductor dependencies
|
| 85 |
+
RUN R -e "BiocManager::install(c('GenomicRanges', 'IRanges', 'S4Vectors', 'Biostrings', 'Rsamtools', 'GenomeInfoDb'), ask=FALSE, update=FALSE)"
|
| 86 |
+
|
| 87 |
+
# Install vcfR package
|
| 88 |
+
RUN install2.r --error vcfR
|
| 89 |
+
|
| 90 |
+
# Install remotes for GitHub installations
|
| 91 |
+
RUN install2.r --error remotes
|
| 92 |
+
|
| 93 |
+
# Install QTLseqr from GitHub
|
| 94 |
+
RUN R -e "remotes::install_github('bmansfeld/QTLseqr', upgrade='never', dependencies=FALSE)"
|
| 95 |
+
|
| 96 |
+
# Create www directory and health file directly
|
| 97 |
+
RUN mkdir -p /code/www && echo "OK" > /code/www/health
|
| 98 |
+
|
| 99 |
+
# Copy app code
|
| 100 |
+
COPY app.R /code/
|
| 101 |
+
|
| 102 |
+
# Expose the port Shiny will run on
|
| 103 |
EXPOSE 7860
|
| 104 |
|
| 105 |
+
# Run the app with corrected host address
|
| 106 |
+
CMD ["R", "--quiet", "-e", "shiny::runApp('/code', host='0.0.0.0', port=7860)"]
|