Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +12 -17
Dockerfile
CHANGED
|
@@ -3,7 +3,7 @@ FROM rocker/shiny:latest
|
|
| 3 |
# Set working directory inside container
|
| 4 |
WORKDIR /code
|
| 5 |
|
| 6 |
-
# Install
|
| 7 |
RUN apt-get update && apt-get install -y \
|
| 8 |
libcurl4-openssl-dev \
|
| 9 |
libssl-dev \
|
|
@@ -20,7 +20,10 @@ RUN apt-get update && apt-get install -y \
|
|
| 20 |
&& apt-get clean \
|
| 21 |
&& rm -rf /var/lib/apt/lists/*
|
| 22 |
|
| 23 |
-
# Install
|
|
|
|
|
|
|
|
|
|
| 24 |
RUN install2.r --error \
|
| 25 |
htmltools \
|
| 26 |
htmlwidgets \
|
|
@@ -31,12 +34,9 @@ RUN install2.r --error \
|
|
| 31 |
ellmer \
|
| 32 |
shinychat \
|
| 33 |
text2vec \
|
| 34 |
-
Matrix
|
| 35 |
-
# sparse matrices
|
| 36 |
|
| 37 |
-
# Install main packages
|
| 38 |
-
# Note: If --error is not supported by your install2.r, remove it and use:
|
| 39 |
-
# RUN install2.r nloptr lme4 emmeans readxl plotly shinyjs shinyWidgets DT RColorBrewer ggrepel openxlsx randomForest caret qtl writexl viridis devtools tidyverse igraph
|
| 40 |
RUN install2.r --error \
|
| 41 |
nloptr \
|
| 42 |
lme4 \
|
|
@@ -59,16 +59,11 @@ RUN install2.r --error \
|
|
| 59 |
igraph \
|
| 60 |
vcfR \
|
| 61 |
poppr \
|
| 62 |
-
|
| 63 |
-
reshape2 \
|
| 64 |
-
viridis \
|
| 65 |
-
plotly
|
| 66 |
-
|
| 67 |
-
|
| 68 |
|
| 69 |
-
# Install packages from GitHub
|
| 70 |
-
RUN R -e "
|
| 71 |
-
&& R -e "
|
| 72 |
|
| 73 |
# Create www directory and health file
|
| 74 |
RUN mkdir -p /code/www && echo "OK" > /code/www/health
|
|
@@ -79,5 +74,5 @@ COPY app.R /code/
|
|
| 79 |
# Expose the port Shiny will run on
|
| 80 |
EXPOSE 7860
|
| 81 |
|
| 82 |
-
# Run the app
|
| 83 |
CMD ["R", "--quiet", "-e", "shiny::runApp('/code', host='0.0.0.0', port=7860)"]
|
|
|
|
| 3 |
# Set working directory inside container
|
| 4 |
WORKDIR /code
|
| 5 |
|
| 6 |
+
# Install system dependencies
|
| 7 |
RUN apt-get update && apt-get install -y \
|
| 8 |
libcurl4-openssl-dev \
|
| 9 |
libssl-dev \
|
|
|
|
| 20 |
&& apt-get clean \
|
| 21 |
&& rm -rf /var/lib/apt/lists/*
|
| 22 |
|
| 23 |
+
# Install pak and remotes first (needed for GitHub installs)
|
| 24 |
+
RUN install2.r --error remotes pak
|
| 25 |
+
|
| 26 |
+
# Install htmlwidgets and related dependencies
|
| 27 |
RUN install2.r --error \
|
| 28 |
htmltools \
|
| 29 |
htmlwidgets \
|
|
|
|
| 34 |
ellmer \
|
| 35 |
shinychat \
|
| 36 |
text2vec \
|
| 37 |
+
Matrix
|
|
|
|
| 38 |
|
| 39 |
+
# Install main packages
|
|
|
|
|
|
|
| 40 |
RUN install2.r --error \
|
| 41 |
nloptr \
|
| 42 |
lme4 \
|
|
|
|
| 59 |
igraph \
|
| 60 |
vcfR \
|
| 61 |
poppr \
|
| 62 |
+
reshape2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 63 |
|
| 64 |
+
# Install packages from GitHub using pak (modern replacement for devtools::install_github)
|
| 65 |
+
RUN R -e "pak::pak('cran/qtlDesign')" \
|
| 66 |
+
&& R -e "pak::pak('jtlovell/qtlTools')"
|
| 67 |
|
| 68 |
# Create www directory and health file
|
| 69 |
RUN mkdir -p /code/www && echo "OK" > /code/www/health
|
|
|
|
| 74 |
# Expose the port Shiny will run on
|
| 75 |
EXPOSE 7860
|
| 76 |
|
| 77 |
+
# Run the app
|
| 78 |
CMD ["R", "--quiet", "-e", "shiny::runApp('/code', host='0.0.0.0', port=7860)"]
|