Update Dockerfile
Browse files- Dockerfile +11 -9
Dockerfile
CHANGED
@@ -1,17 +1,19 @@
|
|
1 |
-
FROM rocker/shiny-verse:
|
|
|
|
|
|
|
|
|
2 |
|
3 |
WORKDIR /code
|
4 |
|
5 |
-
# Install
|
6 |
RUN install2.r --error \
|
7 |
-
|
8 |
-
shiny
|
9 |
-
|
10 |
-
# Install development packages from GitHub
|
11 |
-
RUN installGithub.r \
|
12 |
-
rstudio/bslib \
|
13 |
-
rstudio/httpuv
|
14 |
|
|
|
15 |
COPY . .
|
16 |
|
|
|
|
|
|
|
17 |
CMD ["R", "--quiet", "-e", "shiny::runApp(host='0.0.0.0', port=7860)"]
|
|
|
1 |
+
FROM rocker/shiny-verse:4.3.0
|
2 |
+
|
3 |
+
# Workaround for renv cache
|
4 |
+
RUN mkdir /.cache
|
5 |
+
RUN chmod 777 /.cache
|
6 |
|
7 |
WORKDIR /code
|
8 |
|
9 |
+
# Install renv
|
10 |
RUN install2.r --error \
|
11 |
+
renv
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
|
13 |
+
# Copy application code
|
14 |
COPY . .
|
15 |
|
16 |
+
# Install dependencies
|
17 |
+
RUN Rscript -e 'options(renv.config.cache.enabled = FALSE); renv::restore(prompt = FALSE)'
|
18 |
+
|
19 |
CMD ["R", "--quiet", "-e", "shiny::runApp(host='0.0.0.0', port=7860)"]
|