Spaces:
Sleeping
Sleeping
International Rice Research Institute commited on
Update Dockerfile
Browse files- Dockerfile +8 -13
Dockerfile
CHANGED
|
@@ -15,8 +15,8 @@ RUN apt-get update && apt-get install -y \
|
|
| 15 |
libproj-dev \
|
| 16 |
libv8-dev \
|
| 17 |
libnode-dev \
|
| 18 |
-
libglpk-dev \
|
| 19 |
-
libglpk40
|
| 20 |
|
| 21 |
# Install DT dependencies first
|
| 22 |
RUN install2.r --error \
|
|
@@ -33,30 +33,25 @@ RUN install2.r --error \
|
|
| 33 |
lme4 \
|
| 34 |
emmeans \
|
| 35 |
readxl \
|
| 36 |
-
ggplot2 \
|
| 37 |
plotly \
|
| 38 |
shinyjs \
|
| 39 |
shinyWidgets \
|
| 40 |
DT \
|
| 41 |
RColorBrewer \
|
| 42 |
ggrepel \
|
| 43 |
-
openxlsx
|
| 44 |
-
dplyr
|
| 45 |
|
| 46 |
-
# Install tidyverse
|
| 47 |
-
RUN install2.r --error tidyverse
|
| 48 |
|
| 49 |
-
#
|
| 50 |
-
RUN install2.r --error igraph
|
| 51 |
-
|
| 52 |
-
# Create www directory and health file for container health checks
|
| 53 |
RUN mkdir -p /code/www && echo "OK" > /code/www/health
|
| 54 |
|
| 55 |
# Copy app code
|
| 56 |
COPY app.R /code/
|
| 57 |
|
| 58 |
# Expose the port Shiny will run on
|
| 59 |
-
EXPOSE
|
| 60 |
|
| 61 |
# Run the app with corrected host address
|
| 62 |
-
CMD ["R", "--quiet", "-e", "shiny::runApp('/code', host='0.0.0.0', port=
|
|
|
|
| 15 |
libproj-dev \
|
| 16 |
libv8-dev \
|
| 17 |
libnode-dev \
|
| 18 |
+
libglpk-dev \
|
| 19 |
+
libglpk40
|
| 20 |
|
| 21 |
# Install DT dependencies first
|
| 22 |
RUN install2.r --error \
|
|
|
|
| 33 |
lme4 \
|
| 34 |
emmeans \
|
| 35 |
readxl \
|
|
|
|
| 36 |
plotly \
|
| 37 |
shinyjs \
|
| 38 |
shinyWidgets \
|
| 39 |
DT \
|
| 40 |
RColorBrewer \
|
| 41 |
ggrepel \
|
| 42 |
+
openxlsx
|
|
|
|
| 43 |
|
| 44 |
+
# Install tidyverse and igraph
|
| 45 |
+
RUN install2.r --error tidyverse igraph
|
| 46 |
|
| 47 |
+
# Create www directory and health file directly
|
|
|
|
|
|
|
|
|
|
| 48 |
RUN mkdir -p /code/www && echo "OK" > /code/www/health
|
| 49 |
|
| 50 |
# Copy app code
|
| 51 |
COPY app.R /code/
|
| 52 |
|
| 53 |
# Expose the port Shiny will run on
|
| 54 |
+
EXPOSE 7863
|
| 55 |
|
| 56 |
# Run the app with corrected host address
|
| 57 |
+
CMD ["R", "--quiet", "-e", "shiny::runApp('/code', host='0.0.0.0', port=7863)"]
|