International Rice Research Institute commited on
Update Dockerfile
Browse files- Dockerfile +21 -8
Dockerfile
CHANGED
|
@@ -1,14 +1,27 @@
|
|
| 1 |
FROM rocker/r-base:latest
|
| 2 |
|
|
|
|
| 3 |
WORKDIR /code
|
| 4 |
|
|
|
|
| 5 |
RUN install2.r --error \
|
| 6 |
shiny \
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
FROM rocker/r-base:latest
|
| 2 |
|
| 3 |
+
# Set working directory inside container
|
| 4 |
WORKDIR /code
|
| 5 |
|
| 6 |
+
# Install packages
|
| 7 |
RUN install2.r --error \
|
| 8 |
shiny \
|
| 9 |
+
shinyjs \
|
| 10 |
+
tidyverse \
|
| 11 |
+
DT \
|
| 12 |
+
readxl \
|
| 13 |
+
lme4 \
|
| 14 |
+
emmeans \
|
| 15 |
+
plotly \
|
| 16 |
+
shinywidgets \
|
| 17 |
+
ggplot2
|
| 18 |
+
|
| 19 |
+
# Copy app code and www folder
|
| 20 |
+
COPY app.R /code/
|
| 21 |
+
COPY www /code/www
|
| 22 |
+
|
| 23 |
+
# Expose the port Shiny will run on
|
| 24 |
+
EXPOSE 7860
|
| 25 |
+
|
| 26 |
+
# Run the app
|
| 27 |
+
CMD ["R", "--quiet", "-e", "shiny::runApp('/code', host='0.0.0.0', port=7861)"]
|